• 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
Modal dialog, run loop and core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modal dialog, run loop and core data


  • Subject: Modal dialog, run loop and core data
  • From: Vincent <email@hidden>
  • Date: Tue, 19 Jul 2011 20:31:11 +0200

Hi!

I'm facing a little dilemma: in a modal dialog, I'd like to create a new core data entity with -[aNSArrayControllerInEntityMode insert:] and initialize some attributes of this new entity.

However, the creation and insertion of the new entity is delayed one run loop iteration; but, in a modal dialog, the run loop is stopped! So, what I am to do? Use -[NSApp beginModalSessionForWindow:] and -[NSApp endModalSessionForWindow:] instead of just [NSApp runModalForWindow:]?

Any suggestion?

Thanks,
Vincent_______________________________________________

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: Modal dialog, run loop and core data
      • From: Jens Alfke <email@hidden>
  • Prev by Date: 32 -> 64 bit serializations, NSNumber, int, NSInteger
  • Next by Date: Simple iOS app works on device but crashes in simulator, in AppleSpell
  • Previous by thread: Re: Understanding layer-backed views
  • Next by thread: Re: Modal dialog, run loop and core data
  • Index(es):
    • Date
    • Thread