• 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: Keary Suska <email@hidden>
  • Date: Wed, 29 Feb 2012 16:45:35 -0700

On Feb 29, 2012, at 12:03 PM, Howard Moon wrote:

> 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?  Is it documented anywhere?  I've spent an hour searching and can't find *anything* that says what those Inspector fields mean (other than the aforementioned tool-tip).
>
> 	I'm trying to show a panel that I've loaded previously from my nib. I don't want the panel to show until I want it, and I need to show it via code (in an NSWindowController-derived class I created).  But it either shows when it loads, or it doesn't show at all (when calling showWindow:nil), depending on whether I've checked the "Visible at Launch" checkbox in the IB Inspector.  I was hoping one of those "style mask" properties might be the culprit, but I don't know what they do.
>
> 	Can someone guide me here, or point me to the appropriate documentation?  (My book, Cocoa Programming for Mac OS X, Third Edition, is no help here.)

NSPanels, although subclasses of NSWindow, are their own objects and have their own docs. Look into the "constants" section of the NSPanel Objective-C reference.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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


References: 
 >How do IB inspector fields relate to the actual objects? (From: Howard Moon <email@hidden>)

  • Prev by Date: Localizing MainMenu.xib?
  • Next by Date: Re: How are views supposed to reload after being nillified by memory warnings?
  • Previous by thread: Re: How do IB inspector fields relate to the actual objects?
  • Next by thread: Re: How do IB inspector fields relate to the actual objects?
  • Index(es):
    • Date
    • Thread