How do IB inspector fields relate to the actual objects?
How do IB inspector fields relate to the actual objects?
- Subject: How do IB inspector fields relate to the actual objects?
- From: Howard Moon <email@hidden>
- Date: Wed, 29 Feb 2012 11:03:31 -0800
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.)
Thanks,
Howard
_______________________________________________
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