Re: How do IB inspector fields relate to the actual objects?
Re: How do IB inspector fields relate to the actual objects?
- Subject: Re: How do IB inspector fields relate to the actual objects?
- From: koko <email@hidden>
- Date: Wed, 29 Feb 2012 16:28:00 -0700
Uncheck 'Visible At Launch' in the attributes Inspector with the Window selected.
No it will not display until you tell it.
So you might do
NSWindow *w = [NSWindowController window]
This wil cause your willDidLoad method to be called
then you might
[w makeKeyAndOrderFront];
and if you want it to always be on top regardless of active app you can
[w setLevel:NSFloatingWindowLevel+1];
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.)
>
> 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
>
_______________________________________________
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