2009-06-17から1日間の記事一覧
How do I initialize a store with default data?There are two issues here: creating the data, and ensuring the data is imported only once.There are several ways to create the data.You can create the managed objects directly in code (as trivi…
また、自動的なメソッド合成機能を使わずに、手動でアクセッサを実装することもできる。この場合、nameとsetName:というメソッドを自分で書けばいい。リスト5@implementation MyObject (NSString*)name { ... } (void)setName:(NSString*)name { .... }@end