Re: Getting data from NSOutlineView [solved, kind of...]
Re: Getting data from NSOutlineView [solved, kind of...]
- Subject: Re: Getting data from NSOutlineView [solved, kind of...]
- From: goessly <email@hidden>
- Date: Wed, 14 Dec 2005 11:43:05 +0100
perhaps I should rather create a new NSCell and call
dataCellForRow, and then transform the value?
Actually I've made it work this way
Data from NSOutlineView at (Column, Row):
NSTableColumn * col = [myOutlineView
tableColumnWithIdentifier:@"title"];
NSCell * cel = [col dataCellForRow: row];
NSString * titelString = [[cel objectValue] UTF8String];
Concerning the "bad style" issue:
I try accessing the NSOutlineView instead of my model - or the
NSOutlineController that manages the displayed contents - since I
found myself quite unable to query the managed Objects from my
sceneGraph-Controller. So the outlineview provides the data needed -
actually I'll hide it from the user when I'm done. I'm not to happy
with this either but couldn't find another solution.
But suggestions are always welcome :)
Regards,
goessly
_______________________________________________
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