On Sep 17, 2011, at 5:19 AM, Torsten Curdt wrote:

> So next I re-created the NSPanel step-by-step. As it turns out
> unchecking "resize" on the NSPanel causes this weird behavior.
> 
> Any ideas why that is the case? A bug?

>From the NSWindow docs:

> canBecomeKeyWindow
> Indicates whether the window can become the key window.
> 
> - (BOOL)canBecomeKeyWindow
> Return Value
> YES if the window can become the key window, otherwise, NO.
> 
> Discussion
> Attempts to make the window the key window are abandoned if this method 
> returns NO. The NSWindow implementation returns YES if the window has a title 
> bar or a resize bar, or NO otherwise.

Regards,
Ken

_______________________________________________

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

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

Reply via email to