display NSXMLDocument with NSOutlineView and NSTreeController
display NSXMLDocument with NSOutlineView and NSTreeController
- Subject: display NSXMLDocument with NSOutlineView and NSTreeController
- From: Torsten Curdt <email@hidden>
- Date: Mon, 16 Apr 2007 03:08:13 +0200
Sorry for the newbie question but even after reading this
http://developer.apple.com/documentation/Cocoa/Conceptual/
NSXML_Concepts/Articles/UsingTreeControllers.html#//apple_ref/doc/uid/
TP40003565-DontLinkElementID_4
I fail to see how to use it in my case.
<quote>For this example, the application is document-based—a likely
scenario for an application whose document data is XML markup. An
important requirement for Cocoa bindings is that each instance of the
NSDocument subclass holds a reference (as an instance variable) to
the NSXMLDocument object representing an XML file or other source.</
quote>
I don't want to have a NSDocument based class to access. (Just feels
wrong. No document involved - just want to show some XML.) Basically
I thought I would have to connect the NSTreeController to the
NSOutlineView in IB somehow and then can set the model for the
NSTreeController programmatically somewhere.
Any hints/links?
cheers
--
Torsten_______________________________________________
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:
This email sent to email@hidden