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 sortdescr

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 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 > properties. > Unfortunately, I've

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 LIBRA

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 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 basic. In the above exa

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 abo

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 t

Re: 'Static' items in an NSOutlineView

2011-10-15 Thread Koen van der Drift
wrote: > 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

Re: 'Static' items in an NSOutlineView

2011-10-15 Thread Koen van der Drift
, 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

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 n

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 th

'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 s