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

Re: Re: Force app to be key


  • Subject: Re: Re: Force app to be key
  • From: "Aychamo Aychamo" <email@hidden>
  • Date: Thu, 19 Oct 2006 11:36:25 -0400

Stephen,

That worked.  I never in a million years would have even thought to
look there.  I still have a lot to learn.  Thank you very, very much.

AA

On 10/19/06, Stephen Deken <email@hidden> wrote:
> 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


References: 
 >Force app to be key (From: "Aychamo Aychamo" <email@hidden>)
 >Re: Force app to be key (From: "Stephen Deken" <email@hidden>)

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