• 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
minimum one entity instance on initial launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: minimum one entity instance on initial launch
      • From: "Jim Thomason" <email@hidden>
  • Prev by Date: Re: string encoding in NSMutableData
  • Next by Date: Re: Problem with PDFDocument initWithURL method
  • Previous by thread: resizing NSSegmentedControl automatically
  • Next by thread: Re: minimum one entity instance on initial launch
  • Index(es):
    • Date
    • Thread