• 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: NSPanel: resigning key focus?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPanel: resigning key focus?


  • Subject: Re: NSPanel: resigning key focus?
  • From: Peter N Lewis <email@hidden>
  • Date: Fri, 5 Sep 2008 11:18:34 +0800

The correct solution is probably to figure out which should be the key window and make that key, however:

If I do:
[window orderOut: nil];
[window orderFront: nil]; // Not asking it to be key

This results in the behavior I am trying to achieve.
But this workaround will not work as there is a flicker (ordering out and
ordering in).

You could try bracketing that in

NSDisableScreenUpdates();
[window orderOut: nil];
[window orderFront: nil]; // Not asking it to be key
NSEnableScreenUpdates();

Enjoy,
   Peter.

--
              Keyboard Maestro 3 Now Available!
                Now With Status Menu triggers!

Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
<http://www.stairways.com/>           <http://download.stairways.com/>
_______________________________________________

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: 
 >NSPanel: resigning key focus? (From: "Vijay Malhan" <email@hidden>)
 >Re: NSPanel: resigning key focus? (From: Graham Cox <email@hidden>)
 >Re: NSPanel: resigning key focus? (From: "Vijay Malhan" <email@hidden>)
 >Re: NSPanel: resigning key focus? (From: "Vijay Malhan" <email@hidden>)

  • Prev by Date: Animated images in a NSTableView
  • Next by Date: [MEET] Minnesota CocoaHeads 9/11/08
  • Previous by thread: Re: NSPanel: resigning key focus?
  • Next by thread: Re: NSPanel: resigning key focus?
  • Index(es):
    • Date
    • Thread