• 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: Open window from nib in foreground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open window from nib in foreground


  • Subject: Re: Open window from nib in foreground
  • From: Alexander Spohr <email@hidden>
  • Date: Thu, 19 Feb 2009 19:01:17 +0100

Read the Docs on NSWindow then try makeKeyAndOrderFront:

	atze



Am 19.02.2009 um 18:54 schrieb email@hidden:

Hello,

I am programmatically launching a window that is defined in a XIB file using the following statement:

[NSBundle loadNibNamed:@"MyNibFile" owner:anObject];

where MyNibFile is the name of the XIB file and anObject is the object that gets designated as the "File's owner". However, the window does not have focus when I open it. How do I make that window open in the foreground?

Thanks,
Leo
_______________________________________________

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

_______________________________________________

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: 
 >Open window from nib in foreground (From: email@hidden)

  • Prev by Date: Open window from nib in foreground
  • Next by Date: Bumpy NSViewAnimation
  • Previous by thread: Open window from nib in foreground
  • Next by thread: Re: Re: Open window from nib in foreground
  • Index(es):
    • Date
    • Thread