Hi,

I am implementing some kind of Tools Panel for my document based application 
and I'm wondering how one could copy the standard Color Panel behaviour with 
respect to its key status. 
The Color Panel can be displayed without becoming the key window, it let's the 
user use the various controls without becoming key window, and it only becomes 
key window when the title bar is clicked.

I hav overridden these methods in my NSPanel subclass :

- (BOOL) becomesKeyOnlyIfNeeded
{
    return YES;
}

- (BOOL) canBecomeKeyWindow
{
    return YES;
}

This opens the panel without making it key, which is OK, but it still makes the 
panel key when I click any of the responder objects in the panel, such as a 
collectionview...

Thanks for any help.

-- 
Luc Van Bogaert

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to