• 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
Re: How to catch modal window appearance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to catch modal window appearance?


  • Subject: Re: How to catch modal window appearance?
  • From: Alexander Bokovikov <email@hidden>
  • Date: Tue, 30 Mar 2010 11:12:15 +0600


On 30.03.2010, at 2:27, Lee Ann Rucker wrote:

Well, if you're using runModalForWindow: and relying on it to show the window, it goes away before the method returns, so there is no point in the code after show and before hide.

I understand it of course. I told about the window controller class code, not about the calling procedure code.


But you can always do makeKeyAndOrderFront: explicitly:

[myWindow makeKeyAndOrderFront:self];
// Stuff I need to do
[NSApp runModalForWindow:myWindow].

Now I understand it. Initially I believed that there is an appropriate notification to do it.


Thanks. _______________________________________________

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


References: 
 >How to catch modal window appearance? (From: Alexander Bokovikov <email@hidden>)
 >Re: How to catch modal window appearance? (From: Fritz Anderson <email@hidden>)
 >Re: How to catch modal window appearance? (From: Alexander Bokovikov <email@hidden>)
 >Re: How to catch modal window appearance? (From: Ken Thomases <email@hidden>)
 >Re: How to catch modal window appearance? (From: Alexander Bokovikov <email@hidden>)
 >Re: How to catch modal window appearance? (From: Lee Ann Rucker <email@hidden>)

  • Prev by Date: Re: How to get wifi information
  • Next by Date: Re: Core Data doesn't save toMany relations please HELP :S
  • Previous by thread: Re: How to catch modal window appearance?
  • Next by thread: Creating NSMappingModel programmatically
  • Index(es):
    • Date
    • Thread