• 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: beginning Obj-C [LONG]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >beginning Obj-C [LONG] (From: David Thorp <email@hidden>)

  • Prev by Date: beginning Obj-C [LONG]
  • Next by Date: Re: am i loading this pdf data correctly or not?
  • Previous by thread: beginning Obj-C [LONG]
  • Next by thread: Re: beginning Obj-C [LONG]
  • Index(es):
    • Date
    • Thread