Re: 'Static' items in an NSOutlineView

2011-10-23 Thread Ernesto Giannotta
On 18-ott-2011, at 04:58, Koen van der Drift wrote: As I posted a few days ago, I was able to create the 'static items' in my outlineview, What I am now trying to do is to set the order of the static items, without changing the order of the other groups in the view. Using a

Re: 'Static' items in an NSOutlineView

2011-10-18 Thread Koen van der Drift
On Tue, Oct 18, 2011 at 12:19 AM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Oct 17, 2011, at 19:58 , Koen van der Drift wrote: What it should look like is: LIBRARY (static) Group1 Group2 FAVORITES (static) Group3 Group4 RECENT (static) You've missed something

Re: 'Static' items in an NSOutlineView

2011-10-18 Thread Quincey Morris
On Oct 18, 2011, at 05:20 , Koen van der Drift wrote: when my app starts the first time, I would like to have the outline view be prepopulated with a few groups: LIBRARY, FAVORITES, RECENT and maybe Group1 (a child of LIBRARY). I did all that, but did not add Group1 to be a child of LIBRARY,

Re: 'Static' items in an NSOutlineView

2011-10-18 Thread Koen van der Drift
On Tue, Oct 18, 2011 at 3:21 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Oct 18, 2011, at 05:20 , Koen van der Drift wrote: We're talking about Core Data, right? Objects in a Core Data persistent store have no intrinsic order, though they can be indexed on one of their

Re: 'Static' items in an NSOutlineView

2011-10-17 Thread Koen van der Drift
As I posted a few days ago, I was able to create the 'static items' in my outlineview, What I am now trying to do is to set the order of the static items, without changing the order of the other groups in the view. Using a sortdescriptor won't work, since it will order *all* groups, including

Re: 'Static' items in an NSOutlineView

2011-10-17 Thread Quincey Morris
On Oct 17, 2011, at 19:58 , Koen van der Drift wrote: What it should look like is: LIBRARY (static) Group1 Group2 FAVORITES (static) Group3 Group4 RECENT(static) You've missed something basic. In the above example

Re: 'Static' items in an NSOutlineView

2011-10-15 Thread Koen van der Drift
, at 09:24 , Koen van der Drift wrote: I’m trying to find out how to create the grayish, static items in an NSOutlineView, eg “Library” in iTunes or “Mailboxes” in Mail. Sometimes they have a disclosure triangle, eg Devices in the Finder. I think I need to subclass NSCell to change the font, etc

'Static' items in an NSOutlineView

2011-10-14 Thread Koen van der Drift
Hi, I’m trying to find out how to create the grayish, static items in an NSOutlineView, eg “Library” in iTunes or “Mailboxes” in Mail. Sometimes they have a disclosure triangle, eg Devices in the Finder. I think I need to subclass NSCell to change the font, etc. But I am not sure how to identify

Re: 'Static' items in an NSOutlineView

2011-10-14 Thread Jens Alfke
On Oct 14, 2011, at 9:24 AM, Koen van der Drift wrote: I’m trying to find out how to create the grayish, static items in an NSOutlineView, eg “Library” in iTunes or “Mailboxes” in Mail. Sometimes they have a disclosure triangle, eg Devices in the Finder. I think I need to subclass NSCell

Re: 'Static' items in an NSOutlineView

2011-10-14 Thread Quincey Morris
On Oct 14, 2011, at 09:24 , Koen van der Drift wrote: I’m trying to find out how to create the grayish, static items in an NSOutlineView, eg “Library” in iTunes or “Mailboxes” in Mail. Sometimes they have a disclosure triangle, eg Devices in the Finder. I think I need to subclass NSCell