• 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: Interface Builder Outlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interface Builder Outlets


  • Subject: Re: Interface Builder Outlets
  • From: j o a r <email@hidden>
  • Date: Fri, 16 Dec 2005 08:38:28 +0100


On 16 dec 2005, at 06.11, Boyd Collier wrote:

Outlets are pointers; that is, they are addresses of other stuff, e.g. objects. Thus, to say, as John did, that one can think of an outlet as being an object is somewhat misleading; it's really a pointer to an object. This may become important in connecting up an object that is "created" by using a nib to another object that is perhaps created programmatically. I'll send a longer explanation to Jonathan separately, but if anyone else is interested in taking pot-shots at what I've said, let me know.

IBOutlet is just a label that is used by IB, apart from that, outlets are just regular instance variables.

I don't quite see how thinking about outlets as pointers to objects would help a newbie better understand what they are and how they work. I think that one of the advantages of Cocoa+ObjC is that you rarely ever really have to care about pointers - you can think of it as dealing with objects.

You are of course right, in Cocoa we really do pass around pointers to objects, and an experienced developer needs to know all about pointers - ObjC is a C based language after all. That said, I don't think that it's at the heart of the important things to learn about Cocoa+ObjC.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Interface Builder Outlets
      • From: Ondra Cada <email@hidden>
References: 
 >Interface Builder Outlets (From: Jonathan Faulkenberry <email@hidden>)
 >Re: Interface Builder Outlets (From: John Pannell <email@hidden>)
 >Re: Interface Builder Outlets (From: Boyd Collier <email@hidden>)

  • Prev by Date: Re: Interface Builder Outlets
  • Next by Date: How To retrieve the Relationsships from an entity in Core Data
  • Previous by thread: Re: Interface Builder Outlets
  • Next by thread: Re: Interface Builder Outlets
  • Index(es):
    • Date
    • Thread