Re: Visible At Launch for Panels
Re: Visible At Launch for Panels
- Subject: Re: Visible At Launch for Panels
- From: "Sherm Pendley" <email@hidden>
- Date: Fri, 21 Dec 2007 17:53:04 -0500
On Dec 21, 2007 2:51 PM, Boyd Collier <email@hidden> wrote:
> In response to the user selecting a particular item, I create a panel
> from a nib. If the "Visible At Launch" check box in the inspector of
> the nib containing the panel is checked, the panel is displayed, just
> as I would expect. However, if the check box is not checked, the panel
> is not displayed, again as I would expect. However, it seems like I
> should programatically be able to make the panel visible by using
> windowDidLoad: or awakeFromNib: (or ... ?) with
>
> [[self window] makeKeyAndOrderFront:[self window]];
> [self showWindow:self];
>From the methods you're calling here, I assume that "self" in the above is
an NSWindowController subclass, and is the loaded NIB's owner. That said,
have you told IB the class of the NIB's owner, and connected the owner's
"window" outlet?
sherm--
_______________________________________________
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