On Wed, 29 Feb 2012 11:03:31 -0800, Howard Moon <how...@antarestech.com> said:
>Hi,
>
>       I've added a Panel to a nib for an audio plug-in I'm working on, and am 
> having trouble determining how the IB Inspector settings relate to the actual 
> objects, such as an NSPanel.  In the Inspector, there are several Style Mask 
> checkboxes:
>
>       Utility
>       HUD
>       Non Activating
>       Document Modal.
>
>       What do those mean?  The tool tip for those says they relate to the 
> member styleMask.  Yet when I look up the NSWindow member styleMask, it leads 
> me to a link to the page "Window Style Masks", which lists the following 
> values:
>
>       NSBorderlessWindowMask
>       NSTitledWindowMask
>       NSClosableWindowMask
>       NSMiniaturizableWindowMask
>       NSResizeableWindowMask
>       NSTexturedBackgroundWindowMask
>
>       I don't see what the relation between these is.  Is there any?

Consider the NSPanel style mask values:

enum {
   NSUtilityWindowMask = 1 << 4,
   NSDocModalWindowMask = 1 << 6,
   NSNonactivatingPanelMask = 1 << 7
   NSHUDWindowMask = 1 << 13
};

I see a pretty easy one-to-one mapping.

m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
_______________________________________________

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