• 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
Xcode-like "Groups & Files" view: NSTreeController and/or core data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode-like "Groups & Files" view: NSTreeController and/or core data?


  • Subject: Xcode-like "Groups & Files" view: NSTreeController and/or core data?
  • From: Rick Hoge <email@hidden>
  • Date: Mon, 12 Jan 2009 16:21:39 -0500


I have a project in which it would be helpful to create an organizational view for components of a project very similar to the "Groups & Files" view in Xcode. My application would organize pieces of data from a number of experimental sessions, and perform pre- configured sequences of processing operations on these. The datasets could be organized similar to how source code files are done in Xcode, and the processing sequences would be displayed in a way similar to targets and build phases in Xcode.


I have dabbled with NSTreeController/NSOutlineView as well as with Core Data, and am trying to decide whether to use NSTreeController or the older datasource/delegate approach to populate my outline view. The thing that is tripping me up, conceptually, is that such an outline view has to represent very different kinds of object - ranging (in Xcode) from build phases to source code files. Do all of these need to be subclasses of some node parent class? or would you use a category? Also in Xcode there are numerous instances where the same object is referenced at different points in the outline view. This seems like it could get messy to me.

If anyone can suggest a design strategy that could work well for grouping varied objects type in an NSOutlineView, similar to what's used in Xcode, I'd be very grateful.

Thanks,

Rick

PS it's occurred to me that I could just *use* Xcode for the above tasks, but I should really develop a dedicated interface ...

(43092.6825)

(43092.6825)

_______________________________________________

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: Xcode-like "Groups & Files" view: NSTreeController and/or core data?
      • From: douglas welton <email@hidden>
  • Prev by Date: Re: Disabled button looks like enabled
  • Next by Date: Re: Disabled button looks like enabled
  • Previous by thread: Re: respondsToSelector works in app project, not in library?
  • Next by thread: Re: Xcode-like "Groups & Files" view: NSTreeController and/or core data?
  • Index(es):
    • Date
    • Thread