• 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
NSTreeController examples?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController examples?


  • Subject: NSTreeController examples?
  • From: "Tristan O'Tierney" <email@hidden>
  • Date: Tue, 12 Jul 2005 09:28:29 -0400

the documentation and examples on this seem to be rather sparse. and what i
CAN find, example wise, uses CoreData.

I was told by some people in irc://irc.freenode.org/#macdev that what i
wanted to do wasn't the easiest because NSTreeController likes recursive
single-node structures

essentially i'm looking to make a two level tree:

> Group 1
| Child 1
| Child 2
| Child 3
> Group 2
| Child 1
> Group 3
| Child 1
| Child 2

... etc

such that the groups are single level (no groups within groups, and no
children at the root node) originally i had a structure like:

@interface Group {
NSMutableArray *children;
NSString *name;
}

@interface TreeData {
NSMutableArray *groups;
}

@interface Child {
NSString *name;
}

but I just can't seem to get that to translate well with an NSTreeController
using bindings. Am i just going about this data structure in the wrong way?
should i give in and use coredata?

--
Tristan O'Tierney
- Email: tristan [TA] opendarwin <DOT> org
- Homepage: http://opendarwin.org/~tristan
 _______________________________________________
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

  • Prev by Date: Re: "untitled" vs "Untitled" (code correction)
  • Next by Date: Re: [newbie] Cocoa UI and UTF-8
  • Previous by thread: Autosave tableView Exception
  • Next by thread: Handling returning nil from init
  • Index(es):
    • Date
    • Thread