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: mmalc Crawford <email@hidden>
- Date: Mon, 18 Jun 2007 14:13:50 -0700
On Jun 18, 2007, at 2:07 PM, John Stiles 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.
"The id data type makes it possible to substitute any type of object
at runtime. You can thereby let runtime factors dictate what kind of
object is to be used in your code. [...]"
mmalc
_______________________________________________
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