Re: beginning Obj-C [LONG]
Re: beginning Obj-C [LONG]
- Subject: Re: beginning Obj-C [LONG]
- From: j o a r <email@hidden>
- Date: Thu, 7 Aug 2003 12:34:02 +0200
On Thursday, August 7, 2003, at 12.17, David Thorp wrote:
So the big question is, from my explanation above, have I understood
this correctly, or am I way off base?
Right.
A secondary question is: I also note, that (at least in the pdf) it
declares "id anObject;" (no * to indicate pointer) but "Rectangle
*myRect;" (with a * to indicate pointer) why the * in "Rectangle
*myRect;" but none in "id anObject;"? (Although that again may be
because I've completely misunderstood).
Because you can think of "id" as being equal to "(void *)", ie. it is a
"pointer to something, but we're not sure what".
So:
id myRect, is the same as:
void *myRect, that could well be:
Rectangle *myRect
j o a r
_______________________________________________
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.