Re: Outline and Table back to front
Re: Outline and Table back to front
- Subject: Re: Outline and Table back to front
- From: Thomas Davie <email@hidden>
- Date: Mon, 20 Jun 2005 16:47:57 +0100
On Jun 20, 2005, at 4:41 PM, Corbin Dunn wrote: Which is exactly the reverse of how it should be -- a rectangle adds the feature of having different lengthed edges to a square, this is why a square is a subclass of rectangle.
Subclassing is for specialization, not generalization.
Yes...and the Outlineview adds the special ability of being able to collapse/expand rows of items. It is a specialization, built upon the basics of a table.
If it were the opposite, it would be very strange; the NSTableView would simply restrict ability (ie: the ability to expand/collapse items).
Precicely - subclassing is all about restricting abilities.
Squares are restricted rectangles, therefore they are subclasses of rectangles. Numbers are restricted objects, therefore they are subclasses of objects table views are restricted outline views, therefore they *should* be subclasses of outline views
Bob |
_______________________________________________
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