Hi!Bear in mind that the documentation states, quite particularly, that you should "never invoke this method directly" -- on -resignKeyWindow, -becomeKeyWindow, -resignMainWindow, and -becomeMainWindow -- and, also, that for -resignFirstResponder and -becomeFirstResponder on an NSView:
Use the NSWindow makeFirstResponder: method, not this method, to make an object the first responder. Never invoke this method directly.
Thus you may wish to try to find another way to solve the issue. Unfortunately, it's late, so nothing's coming to mind yet.
Cheers,
Andrew
On Sep 4, 2008, at 10:44 PM, Vijay Malhan wrote:
Peter. Yes, bracketing the calls removes the flicker. But as far as thecorrect solution goes:There might not be any other window which I should make key. In that case the panel should simply resign the key focus and let application handle theevents. It seems this will be the solution for now. Thank you. - VijayOn Fri, Sep 5, 2008 at 8:48 AM, Peter N Lewis <[EMAIL PROTECTED]>wrote:The correct solution is probably to figure out which should be the keywindow 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 andordering 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/vijay.malhan%40gmail.com This email sent to [EMAIL PROTECTED]_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/andrew.merenbach%40ucla.edu This email sent to [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
