• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSOutlineView and arrangedObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSOutlineView and arrangedObjects
      • From: "Kyle Sluder" <email@hidden>
    • Re: NSOutlineView and arrangedObjects
      • From: William Turner <email@hidden>
  • Prev by Date: Re: Counter field as in Mail.app
  • Next by Date: How to use CAMediaTiming's beginTime?
  • Previous by thread: Re: Counter field as in Mail.app
  • Next by thread: Re: NSOutlineView and arrangedObjects
  • Index(es):
    • Date
    • Thread