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

Re: display NSXMLDocument with NSOutlineView and NSTreeController


  • Subject: Re: display NSXMLDocument with NSOutlineView and NSTreeController
  • From: Evan Moseman <email@hidden>
  • Date: Mon, 16 Apr 2007 11:01:17 -0400

Torsten,

I'm not exactly sure what you are aiming for, but there is a complete example of NSXMLNode and NSXMLDocument in /Developer/Examples/ Foundation/XMLBrowser. It has examples of bindings, NSArrayControllers, it is a really nice example. This example isn't a NSDocument app, I don't think.

--
Evan

On Apr 15, 2007, at 9:08 PM, Torsten Curdt wrote:

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:
40gmail.com


This email sent to email@hidden

_______________________________________________

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: Torsten Curdt <email@hidden>
References: 
 >display NSXMLDocument with NSOutlineView and NSTreeController (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: NSTableView-like object for Finder-like app
  • Next by Date: Re: Document based apps & tabbed windows?
  • Previous by thread: display NSXMLDocument with NSOutlineView and NSTreeController
  • Next by thread: Re: display NSXMLDocument with NSOutlineView and NSTreeController
  • Index(es):
    • Date
    • Thread