Re: Multiple movable modals
Re: Multiple movable modals
- Subject: Re: Multiple movable modals
- From: Eric Brunstad <email@hidden>
- Date: Tue, 14 Jun 2005 20:04:00 -0400
On Jun 14, 2005, at 8:46 AM, Andy Bettis wrote: Unfortunately I want to spawn a second modal dialog from this one. When I do so it looks fine but the new window is not modal, it is possible to click and select the first one, which is not what I want. I imagine that I need to call [NSApp stopModal] on the first window before calling [NSApp runModalForWindow:[theDialog window]] on the second one - is this true? If so I need to know when the second one has gone away so I can restore the [NSApp runModalForWindow:[theDialog window]] call on the first window again. What I would like to do is to put the NSApp modal on/off calls in methods that are called when the window becomes or stops being the key window but I can't work out where this should be. Do I need to use notifications for this?
- (void) registerAsDelegate { // register as delegate to the second window [theWindow setDelegate:self]; }
- (void) windowWillClose:(NSNotification*note) { // this method is called when the window is closed }
Eric Brunstad Mind Sprockets Software www.mindsprockets.com
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden