Modal dialog, run loop and core data
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