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: Chris Kane <email@hidden>
- Date: Tue, 19 Jun 2007 12:34:40 -0700
I'll throw in another reason, not for 'id', but for not having a
single root class... Categories.
With categories you can add methods to any class. NSObject gets a
pile of cr** ^H^H^H^H^Hmethods added onto it, and there are times when
you don't want your object to respond to every random method somebody
tacked onto the root class. It doesn't happen often, but once in a
while it's useful to have an alternative. The issue doesn't arise in
Java.
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
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