• 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: [cocoa scripting] getting script class attribute name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cocoa scripting] getting script class attribute name


  • Subject: Re: [cocoa scripting] getting script class attribute name
  • From: Dustin Voss <email@hidden>
  • Date: Tue, 6 Sep 2005 21:27:01 -0700

Sorry, the XPath expression is
    //property[@code='pisf']/@name
instead of
    //property[code="pisf"]/@name

'pisf' vs "pisf" doesn't matter, but @code vs code does. You have to have the at sign in front of an attribute name.


On 6 Sep 2005, at 12:34 PM, Ken Victor wrote:

dustin,
thanx very much. unfortunately, this isn't working for me. i always get back a nodes array with 0 items! as far as i know, i successfully create the NSXMLDocument *sdefDoc, and successfully get the root element, but thats as far as it goes successfully. i say that i successfully get the doc and root as no errors are reported and when i look at them in the xcode debugger, they both looks like my sdef file. however, if is use the print description to console menu command for the root element, it prints as one continuous stream of text, with no apparent (tree) structure. is this correct? (actually, i do see a tree structure for a part of my sdef file that i have commented out.)


thanx in advance for any help/insight you (or anyone) can provide,
ken

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: [cocoa scripting] getting script class attribute name (From: Ken Victor <email@hidden>)

  • Prev by Date: Re: mousedown in a view
  • Next by Date: Trouble with FSMountServerVolumeSync
  • Previous by thread: Re: [cocoa scripting] getting script class attribute name
  • Next by thread: Programatically create URLs in NSTextView or ??
  • Index(es):
    • Date
    • Thread