• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
basic nib connection frustration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: [OT] Re: EOF undead?
  • Next by Date: Can't create new document
  • Previous by thread: Re: [OT] Immortal Property List Editor
  • Next by thread: Re: basic nib connection frustration
  • Index(es):
    • Date
    • Thread