• 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
Re: Programmatically connecting outlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically connecting outlets


  • Subject: Re: Programmatically connecting outlets
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 3 Feb 2008 13:18:43 +0100

On 03.02.2008, at 04:53, Kyle Sluder wrote:
On Feb 2, 2008 10:25 PM, Jacob Bandes-Storch <email@hidden> wrote:
I'd like to create a connection between my app controller
and the window controllers, so that controls in the window can
communicate with the window controller, which can process information
and then communicate with the app controller.

There is nothing special about an outlet. IBOutlet is a macro that expands to absolutely nothing. It's simply used to tell IB "Hey, this ivar is supposed to be set in IB."


Or in short, an outlet is just an instance variable that points to an object. Just assign it the value of whatever object you want it to point to. Usually, you'd use an accessor method for that.

Cheers,
-- M. Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de




_______________________________________________

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


References: 
 >Programmatically connecting outlets (From: Jacob Bandes-Storch <email@hidden>)
 >Re: Programmatically connecting outlets (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: [Moderator] Re: MacBook Air multitouch trackpad API
  • Next by Date: NSCollectionView's newItemForRepresentedObject Method
  • Previous by thread: Re: Programmatically connecting outlets
  • Next by thread: NSCollectionView's newItemForRepresentedObject Method
  • Index(es):
    • Date
    • Thread