Re: NSWindow styleMask warning on bit 0x10
Re: NSWindow styleMask warning on bit 0x10
- Subject: Re: NSWindow styleMask warning on bit 0x10
- From: Jonathan Hess <email@hidden>
- Date: Fri, 30 Nov 2007 12:36:12 -0800
Hey David -
0x0F is 0000 1111 in binary, Ox10 is 0001 0000 in binary, so the IB
windows that come with a style mask of 0x0F don't have 0x10 set. 0x10
is 'NSUtilityWindowMask' from NSPanel.h. If you make your window into
a panel in IB by changing the custom class to 'NSPanel' you'll be able
to uncheck the 'utility mask' option in the attributes inspector. IB
3.0 clears this bit for you when you downgrade a NSPanel to an
NSWindow. Did you create this nib with IB 2.x initially and then
downgrade an NSWindow to an NSPanel?
Good Luck -
Jon Hess
On Nov 30, 2007, at 11:41 AM, David Hoerl wrote:
I just noticed that everytime I run my project, that I am getting
this message on the console:
NSWindow does not support utility styleMask 0x10
I fiddled with the window settings, and tried a new window - same
issue.
So, I created a new outlet, dragged a NSWindow out of the palette,
connected it to a NSWindowController outlet, and when the NIB was
loaded, I printout in hex the styleMask. The new "clean" window has
a styleMask of 0xF (thus, bit 0x10 is set).
This all with Xcode 3, IB3, in both 2.x and 3.x formats.
David
PS: google search of the string shows it in many older (Tiger)
console logs posted on the web, but none that address this question.
_______________________________________________
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