Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController and Custom Views



Hi all,

I'm trying to build a non-Core Data application that uses an NSTreeController to populate a custom tree-like view (I can't use NSOutlineView).

Unless I'm mistaken this appears to be very difficult to do without using unsupported hackery. I've been using mmalcolm crawford's excellent Graphics Bindings example as a starting point:

http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

This example uses an NSArrayController which is not suited to the tree-like nature of my data. However, when I try to use an NSTreeController instead, I get all sorts of problems because the arrangedObjects keyPath returned from the controller is not a "real" array, it is an opaque type that I cannot iterate. This makes it next to impossible to set up all the observing necessary when binding.

Is it possible to do what I am doing? Has anyone done this? I have searched CocoaDev, this list and Google in vain for some clues.

I really want to use bindings if at all possible since it would vastly simplify the rest of my app.

Thanks for any help you might be able to offer.

- rob.keniger

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.