• 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
Singleton Entities?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Singleton Entities?


  • Subject: Singleton Entities?
  • From: Daniel DeCovnick <email@hidden>
  • Date: Tue, 30 Jun 2009 15:53:41 -0700

Hi all,

I've got a list of settings which are application-level, but are part of the data my application manipulates. Based on this, I figured I should keep these settings in a Core Data Entity (which I'm using for the rest of my data) instead of the User Defaults. However, they are most certainly application-level, so I figure I should implement the singleton pattern for this entity.

Questions: is my thought process correct here, or should I be putting it in User Defaults and pretending in the UI that it's part of the data, and, if my thinking is correct, are there any gotchas for making singletons of NSManagedObject subclasses?

-Daniel

Daniel DeCovnick
email@hidden
_______________________________________________

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


  • Prev by Date: Re: NSDateFormatter Breaks on non-English OS
  • Next by Date: Dynamic Services menu, CM plug-in alternatives
  • Previous by thread: Re: NSDateFormatter Breaks on non-English OS
  • Next by thread: Dynamic Services menu, CM plug-in alternatives
  • Index(es):
    • Date
    • Thread