クラス内部ではRWだけど、外からはROにしたいときのプロパティの設定方法だそう。これは何となく便利かも。

paellapaella のブックマーク 2009/12/14 09:53

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Objective-C accessor declarations (readonly, readwrite, etc)

    In the book, "Cocoa Design Patterns," the author sometimes declares a property in the @interface as readonly: // .h @property (readonly, copy) NSArray *shapesInOrderBackToFront; and then later adds...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう