Re: Populating a new SQLite Core Data store with default data
Re: Populating a new SQLite Core Data store with default data
- Subject: Re: Populating a new SQLite Core Data store with default data
- From: Kyle Sluder <email@hidden>
- Date: Mon, 23 Feb 2009 13:50:08 -0500
On Mon, Feb 23, 2009 at 1:35 PM, Jon C. Munson II <email@hidden> wrote:
> You'll have to use KVC in that case. At least, I did. I tried both the dot
> and standard accessor to be sure.
You can usually cast the result yourself, since typically the
entityName argument for +[NSEntityDescription
insertNewObjectForEntityForName:inManagedObjectContext:] is a string
literal. If you haven't subclassed NSManagedObject, you can use
mogenerator.
And unlike the dot syntax, sending messages to objects that may not
understand them isn't an error, as long as the compiler can see the
declaration of the method signature from where it stands.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden