• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Outline and Table back to front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Outline and Table back to front
      • From: Andreas Mayer <email@hidden>
References: 
 >Re: Outline and Table back to front (From: Gorazd Krosl <email@hidden>)
 >Re: Outline and Table back to front (From: Thomas Davie <email@hidden>)
 >Re: Outline and Table back to front (From: Charilaos Skiadas <email@hidden>)
 >Re: Outline and Table back to front (From: Thomas Davie <email@hidden>)
 >Re: Outline and Table back to front (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Outline and Table back to front
  • Next by Date: Re: Outline and Table back to front
  • Previous by thread: Re: Outline and Table back to front
  • Next by thread: Re: Outline and Table back to front
  • Index(es):
    • Date
    • Thread