NSOutlineView and arrangedObjects
NSOutlineView and arrangedObjects
- Subject: NSOutlineView and arrangedObjects
- From: Ivan C Myrvold <email@hidden>
- Date: Fri, 25 Jan 2008 11:25:22 +0100
In my application I have replaced an NSTableView with an NSOutlineView.
I used to have a routine like this
NSArray *arr = [otextArrayController arrangedObjects];
for (i=0; i<[arr count]; i++) {
MyTextElement *te = [arr objectAtIndex:i];
but when I changed the first line to
NSArray *arr = [otextTreeController arrangedObjects];
this no longer works, as arr is no an NSArray any longer, but an
_NSControllerTreeProxy.
Looks like this is a private object, as I can find very little
information about this class.
The _NSControllerTreeProxy object (arr) responds to the count method,
giving me a correct count, but how can I iterate through the objects?
Ivan
_______________________________________________
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