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 20:22:36 +0100
On Jun 20, 2005, at 8:05 PM, Andreas Mayer wrote:
Am 20.06.2005 um 20:33 Uhr schrieb Thomas Davie:
It should specialize outline view to not allow for indenting and dedenting.
Why?
And how would you do so by *adding* methods (and ivars if you like)? 'Cause that's what subclasses do.
You would need to have all the functionality of an outline view in your superclass and in the table view subclass add a method like -dontUseOutlineViewMethods:. But what will happen if someone sends an -expandItem: message to your table view object anyway? Throw an exception? Remember: In your proposed class diagram a table view *is* a outline view; so it's perfectly legal to send it *any* message that outline views understand.
I think the current implementation is much more sensible.
No, you would override all the methods that deal with expansion and make them do nothing.
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