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:37:27 +0100
On Jun 20, 2005, at 4:21 PM, Corbin Dunn wrote:
Is it me, or are NSOutlineView and NSTableView back to front in the class hierarchy? It appears that table view *should* be a specialization of outline view (it's an outline view that can't have hierarchies), not the other way round.
Someone tell me why I'm wrong :)
NSOutlineView descends from NSTableView. NSOutlineView is an NSTableView that adds the concept of disclosure triangles (on the simplest level, that is). Is there a specific part you need to know about? if so..let me know, and I'll try to clarify it.
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.
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