I have a NSPanel that is opened like Modal panel:

-(void) showModal {
     [NSApp runModalForWindow: myWindow];
}

and is closed with event click on button that is allocated on this NSPanel:

-(IBAction)delayWindow:(id)sender {
    [NSApp abortModal];
  //[myWindow orderOut: self];
    [myWindow close];
}

First calling of runModalForWindow: works fine and NSPanel is in modal status but after calling delayWindow and after then second calling of showModal is NSPanel correctly showed but is not in Modal status :( What i do wrongly and why is not my NSPanel in Modal status after second, third etc. calling of showModal ?

thnx
Donald
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to