• 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: Giving the Root Object of an Outline View a Different Background Color.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Giving the Root Object of an Outline View a Different Background Color.


  • Subject: Re: Giving the Root Object of an Outline View a Different Background Color.
  • From: Brad Gibbs <email@hidden>
  • Date: Sat, 08 Aug 2009 15:33:26 -0700

Apple has a sample app called DragNDropOutlineView that's helpful when getting comfortable with outline views. Also, Jonathan Dann has two useful outline view sample apps -- one to show sorting with Core Data and another that animates the expansion of a root object to reveal its contents (Animating Outline View). His site is http://espresso-served-here.com/


On Aug 8, 2009, at 10:04 AM, Quincey Morris wrote:

On Aug 8, 2009, at 08:30, Joshua Garnham wrote:

I am looking for some code to make the root object's in an outline view have a different background color to the other rows.
I am pretty sure I need to sub-class the outline view but I don't know what code to add to the sub-class to do what I want it to do (which is what I described above).

There shouldn't be any need to subclass the outline view -- you will most likely be able to set the desired background color in outlineView:willDisplayCell:forTableColumn:item: (and/or outlineView:willDisplayOutlineCell:forTableColumn:item:).


Another possibility, if it's important that the top level object rows need to look different but it's not crucial that you use a specific background color, is to implement outlineView:isGroupItem: (another delegate method), which gives group rows a distinctive look.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Giving the Root Object of an Outline View a Different Background Color. (From: Joshua Garnham <email@hidden>)
 >Re: Giving the Root Object of an Outline View a Different Background Color. (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSData Questions
  • Next by Date: ***SOLVED*** Re: NSArrayController Managing / Sorting NSManagedObjects
  • Previous by thread: Re: Giving the Root Object of an Outline View a Different Background Color.
  • Next by thread: Re: Universal binary with different deployment targets - how?
  • Index(es):
    • Date
    • Thread