OutlineView Wierdness - 'item' not being stored.

2010-05-26 Thread Pascal Harris
I'm trying to populate an OutlineView. I've had success in the past but now, apparently, I'm unable to do it! Looking at this code: - (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item { if (item == nil) { [mailListDict writeToFile:@/test.plist

Re: OutlineView Wierdness - 'item' not being stored.

2010-05-26 Thread Graham Cox
On 26/05/2010, at 10:12 PM, Pascal Harris wrote: - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item { if ([[[tableColumn headerCell] stringValue] compare:@Key] == NSOrderedSame) { I'm not sure what the problem is,

Re: OutlineView Wierdness - 'item' not being stored.

2010-05-26 Thread Pascal Harris
Thanks for this - I've done as you suggested and it works fine. Serves me right for attempting to learn from examples on the web ;) On Wed, May 26, 2010 at 1:27 PM, Graham Cox graham@bigpond.com wrote: On 26/05/2010, at 10:12 PM, Pascal Harris wrote: - (id)outlineView:(NSOutlineView