• 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: Force app to be key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force app to be key


  • Subject: Re: Force app to be key
  • From: "Stephen Deken" <email@hidden>
  • Date: Thu, 19 Oct 2006 10:31:01 -0500

I'm looking for a method to force my app's window to be on top of all
other windows, and to be key.  I've managed to make it's window be on
top by using [myWindow setLevel: ] and setting it to the highest
level.

Try this:

    [NSApp activateIgnoringOtherApps:YES];
    [myWindow makeKeyAndOrderFront:self];

Stephen Deken
email@hidden
_______________________________________________
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


  • Follow-Ups:
    • Re: Re: Force app to be key
      • From: "Aychamo Aychamo" <email@hidden>
References: 
 >Force app to be key (From: "Aychamo Aychamo" <email@hidden>)

  • Prev by Date: Force app to be key
  • Next by Date: Re: -[NSMenuItem setKeyEquivalent] not working for some keys
  • Previous by thread: Force app to be key
  • Next by thread: Re: Re: Force app to be key
  • Index(es):
    • Date
    • Thread