Re: Outline and Table back to front
Re: Outline and Table back to front
- Subject: Re: Outline and Table back to front
- From: Andreas Mayer <email@hidden>
- Date: Mon, 20 Jun 2005 21:05:17 +0200
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.
Andreas
_______________________________________________
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