Re: Visible At Launch for Panels (SOLVED)
Re: Visible At Launch for Panels (SOLVED)
- Subject: Re: Visible At Launch for Panels (SOLVED)
- From: Boyd Collier <email@hidden>
- Date: Sat, 22 Dec 2007 17:33:24 -0800
Sherm,
Thanks very much for answering my question. Your assumptions were
correct, and I had indeed botched up connecting the outlet in the
NIB's owner to my panel. That's what I get for trying to use the new
Interface Builder without taking time to understand its new interface.
Boyd
On Dec 21, 2007, at 2:53 PM, Sherm Pendley wrote:
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