• 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
display NSXMLDocument with NSOutlineView and NSTreeController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: display NSXMLDocument with NSOutlineView and NSTreeController
      • From: Evan Moseman <email@hidden>
  • Prev by Date: Re: NSDrawer border width
  • Next by Date: Re: CGEventKeyboardGetUnicodeString + modifier key
  • Previous by thread: Re: taking control of the Window menu
  • Next by thread: Re: display NSXMLDocument with NSOutlineView and NSTreeController
  • Index(es):
    • Date
    • Thread