Re: Interface Builder Outlets
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