• 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: Storing miscellaneous singleton data in CoreData app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing miscellaneous singleton data in CoreData app?


  • Subject: Re: Storing miscellaneous singleton data in CoreData app?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 28 May 2008 09:19:55 -0700


On 28 May '08, at 12:43 AM, Rick Mann wrote:

I also want to display some data in the detail view that is global to the document. What's the best/easiest way to add that information to my document and make it available to a text field via bindings? Do I need to create additional CoreData schema? The thing is, there should only ever be one of this global data, not many rows in a table.

I would create a new entity in your object model whose properties are the things you want to remember.
Then when you open the data store, fetch the single instance; if there isn't one, add one.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Storing miscellaneous singleton data in CoreData app? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: if statement
  • Next by Date: Re: Storing miscellaneous singleton data in CoreData app?
  • Previous by thread: Storing miscellaneous singleton data in CoreData app?
  • Next by thread: Re: Storing miscellaneous singleton data in CoreData app?
  • Index(es):
    • Date
    • Thread