Re: Outline and Table back to front
Re: Outline and Table back to front
- Subject: Re: Outline and Table back to front
- From: Charilaos Skiadas <email@hidden>
- Date: Mon, 20 Jun 2005 13:24:41 -0500
On Jun 20, 2005, at 1:10 PM, Thomas Davie wrote:
Since NSObject can't store strings, how can it be
superclass of NSString?
NSObject can store things *points at an NSString* there's an
NSObject storing something.
Bob
True, and NSObject *can* store strings, but *not every NSObject
stores strings*. Storing strings is not one of the things every
NSObject can do. The class NSObject describes the properties that
*every* object has. One of the purposes of subclassing is to *add*
functionality. Maybe a class of objects have more things in common
rather than just the fact that they are objects. They would want to
have the ability to respond to certain messages. but since *not all*
objects have this ability, this is not a property of the "object"
notion, but only of its subclass.
There is huge difference between:
"an NSObject does aThing" and
"an NSObject can do aThing".
Haris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden