• 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
File's owner, outlets and methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File's owner, outlets and methods


  • Subject: File's owner, outlets and methods
  • From: Michael de Haan <email@hidden>
  • Date: Thu, 13 Aug 2009 13:32:14 -0700

Hi all,
I wonder if I could get some clarity on this issue.
Hillegass asks, ( challenge chapter 12) to create a custom About Panel.
I have ( surprisingly) done this quite easily :-)...but I am left with this one puzzle.


**Very** briefly, the set up is as follows.

AppController has an outlet (IBOutlet NSPanel *aboutWindow) and a method (-(IBAction) showPanel: (id) sender;)



"Custom" xib file;
File's owner = AppController.
File's owner (aboutWindow) outlet points to the NSPanel object in the xib.




"Main Menu" xib
AppController object to which the "About NewApplication" from the MainMenu is connected ( pointing to the method "showPanel").



My question is this.

The inspector of File's owner in the "Custom" xib shows, as expected an outlet ( which is connected) as well as the method "showPanel" which is *not* connected. In fact, I am unable to "connect" ( if that is the correct terminology) the "About NewApplication" to this, or to the File's owner (control-drag), but am able to do so to the AppController object in the mainMenu.xib

Is this just the way it is, or is there some good logical explanation for this that will help in my deeper understanding of cocoa?

Thanks in advance.
_______________________________________________

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


  • Follow-Ups:
    • Re: File's owner, outlets and methods
      • From: Dave Carrigan <email@hidden>
  • Prev by Date: [Meet]: Reminder LA CocoaHeads tonight 7:30pm
  • Next by Date: Re: Releasing ivars in -didTurnIntoFault. Should set to nil?
  • Previous by thread: [Meet]: Reminder LA CocoaHeads tonight 7:30pm
  • Next by thread: Re: File's owner, outlets and methods
  • Index(es):
    • Date
    • Thread