basic nib connection frustration
basic nib connection frustration
- Subject: basic nib connection frustration
- From: Ben Dougall <email@hidden>
- Date: Thu, 3 Jul 2003 13:46:09 +0100
hiyer, i'm really stuck on one of hillegass's chalenges (pg 154 #2 -
create another nib file for a custom about panel. use NSBundle to load
it explicitly)
this is what i've done (not completely sure about the order (i've done
it all several times in different orders)) :
put these two lines in AppController.h :
IBOutlet NSPanel *aboutPanel;
- (IBAction)showAboutPanel:(id)sender;
this in AppController.m :
- (IBAction)showAboutPanel:(id)sender
{
if ([NSBundle loadNibNamed:@"About" owner:self])
[aboutPanel makeKeyAndOrderFront:self];
}
opened the About nib file that has the About window, and dragged
AppController.h into that nib. selected the File's Owner and made
AppController its class. (i have not instantiated AppController in the
about nib).
opened the MainMenu.nib (which already has AppController intantiated
in) and dragged AppController.h in again, and control clicked and
dragged from the About RaiseMan menu option to the AppController icon,
and made it's target showAboutPanel: by connecting them.
no about window when i select it having compiled the app. no error
either.
i'm going round in circles with it. please help. :)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.