Re: Push a second pane?
Re: Push a second pane?
- Subject: Re: Push a second pane?
- From: Vachik Hovhannisyan <email@hidden>
- Date: Thu, 09 May 2013 15:35:46 -0700 (PDT)
I assume that contentView is correctly connected to the view object inside the nib file.
You can check the return value from loadNibNamed:owner: to see if it is loaded, though I am sure it would not, because the method would look for the nib inside Installer bundle. Besides that message is deprecated in OS X 10.8.
Use - (BOOL)loadNibNamed:(NSString *)nibName owner:(id)owner topLevelObjects:(NSArray **)topLevelObjects and loop through the topLevelObjects to find your installer pane
object.
Also important, if you are compiling with ARC you need to store the object pointer that would keep it live for you to use.
Thanks,
Vachik
From: Scott Grosch <email@hidden>
To: Vachik Hovhannisyan <email@hidden>
Cc: "email@hidden" <email@hidden>
Sent: Thursday, May 9, 2013 12:17 AM
Subject: Re: Push a second pane?
On May 8, 2013, at 8:14 PM, Vachik Hovhannisyan <
email@hidden> wrote:
I had similar situation some time ago, and I solved this by having single pane with tabless Tab View. Whenever I needed new view to be shown in the pane I switched the Tab View's current tab index inside the - (BOOL)shouldExitPane:(InstallerSectionDirection)dir handler when needed and returned NO to the caller.
I think I almost have this working, but my newness to cocoa is biting me. In my primary pane I did this:
- (InstallerPane *)nextPane {
if (displayDatabaseNukePane) {
self.nukeDatabasePane = [[NukeDatabase alloc] initWithSection:self];
return self.nukeDatabasePane;
} else
return [super nextPane];
}
and then in the NukeDatabase installer pane I did this:
- (id)initWithSection:(id)parent {
if ((self = [super initWithSection:parent])) {
[NSBundle loadNibNamed:@"NukeDatabase" owner:self.section];
}
return self;
}
The pane seems to appear on the screen when I hit next, but it's just all white. The view I've setup in the XIB doesn't actually appear. I'm an iOS guy, so I'm not entirely
sure if I'm loading and attaching the view correctly here (clearly not…)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden