• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do IB inspector fields relate to the actual objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do IB inspector fields relate to the actual objects?


  • Subject: Re: How do IB inspector fields relate to the actual objects?
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 29 Feb 2012 14:22:11 -0800

On Wed, 29 Feb 2012 11:03:31 -0800, Howard Moon <email@hidden> 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 = email@hidden, <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 (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


  • Prev by Date: Re: Xcode - An Apple Embarrassment
  • Next by Date: Re: How do IB inspector fields relate to the actual objects?
  • Previous by thread: Re: How do IB inspector fields relate to the actual objects?
  • Next by thread: Autolayout: How to force calling [NSView baselineOffsetFromBottom] again?
  • Index(es):
    • Date
    • Thread