• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Populating a new SQLite Core Data store with default data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Populating a new SQLite Core Data store with default data (From: "Jon C. Munson II" <email@hidden>)
 >RE: Populating a new SQLite Core Data store with default data (From: "Jon C. Munson II" <email@hidden>)
 >Re: Populating a new SQLite Core Data store with default data (From: mmalc Crawford <email@hidden>)
 >RE: Populating a new SQLite Core Data store with default data (From: "Jon C. Munson II" <email@hidden>)

  • Prev by Date: RE: Populating a new SQLite Core Data store with default data
  • Next by Date: Re: Populating a new SQLite Core Data store with default data
  • Previous by thread: RE: Populating a new SQLite Core Data store with default data
  • Next by thread: Re: Populating a new SQLite Core Data store with default data
  • Index(es):
    • Date
    • Thread