Singleton Entities?
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