• 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
NSPanel and runModalForWindow: problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPanel and runModalForWindow: problems


  • Subject: NSPanel and runModalForWindow: problems
  • From: Daniel Káčer <email@hidden>
  • Date: Sat, 13 Feb 2010 15:53:05 +0100

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 (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: NSPanel and runModalForWindow: problems
      • From: Keary Suska <email@hidden>
  • Prev by Date: UIWebView PDF Paging
  • Next by Date: Where To Put Export... In Document-Based Core Data App
  • Previous by thread: Re: UIWebView PDF Paging
  • Next by thread: Re: NSPanel and runModalForWindow: problems
  • Index(es):
    • Date
    • Thread