Re: Why the need for the id type?
Re: Why the need for the id type?
- Subject: Re: Why the need for the id type?
- From: John Stiles <email@hidden>
- Date: Mon, 18 Jun 2007 14:07:08 -0700
On Jun 18, 2007, at 2:01 PM, mmalc Crawford wrote:
On Jun 18, 2007, at 1:46 PM, Wagner Truppel wrote:
I don't understand why id should be necessary. Why isn't NSObject
(or some other root class) enough?
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaFundamentals/CocoaObjects/chapter_3_section_3.html#//apple_ref/
doc/uid/TP40002974-CH4-DontLinkElementID_130>
I don't see how this directly answers the OP's question.
My first thought would be that "id" can point to a non-NSObject
object; it's kind of like a psuedo-base-class from which all
unparented classes derive (NSObject being the most common example).
But that may be an oversimplification.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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