Re: NSPanel: resigning key focus?
Re: NSPanel: resigning key focus?
- Subject: Re: NSPanel: resigning key focus?
- From: "Vijay Malhan" <email@hidden>
- Date: Fri, 5 Sep 2008 11:14:44 +0530
Peter. Yes, bracketing the calls removes the flicker. But as far as the
correct 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 the
events.
It seems this will be the solution for now. Thank you.
- Vijay
On Fri, Sep 5, 2008 at 8:48 AM, Peter N Lewis <email@hidden>wrote:
> 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
>
_______________________________________________
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