NSWindow styleMask warning on bit 0x10

  • 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.
  • 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.
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today