minimum one entity instance on initial launch
minimum one entity instance on initial launch
- Subject: minimum one entity instance on initial launch
- From: Gonzalo Castro <email@hidden>
- Date: Wed, 8 Aug 2007 15:24:13 -0400
My user can create instances of an entity which I hold in an
NSArrayController and display in a table.
I want there to be at least one entity instance on initial launch of
the application, including any launch following the user deleting the
persistent storage file. What's the best way to ensure this?
My thought was to check on launch for at least one object in the
array controller but since managed objects are fetched some time
after applicationDidFinishLaunching: I'd have to do the checking and
inserting on a selector called with
performSelector:withObject:afterDelay: from
applicationDidFinishLaunching:. Is this the right approach?
Gonzalo
_______________________________________________
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