• 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: "Arguments" dictionary in NSXML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Arguments" dictionary in NSXML


  • Subject: Re: "Arguments" dictionary in NSXML
  • From: "Timothy J. Wood" <email@hidden>
  • Date: Sun, 29 May 2005 16:44:51 -0700


On May 28, 2005, at 11:48 AM, Scott Ahten wrote:

Note: When creating a parameter dictionary, you'll need to put constant parameter string values in single quotes, otherwise they are evaluated as "".

NSMutableDictionary *args = [NSMutableDictionary dictionary];

[args setObject:@"'Scott'" forKey:@"nameFirst"];
[args setObject:@"'Ahten'" forKey:@"nameLast"];

NSXMLDocument *results =[source objectByApplyingXSLTString:templateString
arguments: args
error: nil];

In general, I think they are supposed to be a XSL expression. So, leaving off the quotes is probably resulting in a element search (i.e., the element Scott instead of the string 'Scott').


-tim

_______________________________________________
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: 
 >"Arguments" dictionary in NSXML (From: Scott Thompson <email@hidden>)
 >Re: "Arguments" dictionary in NSXML (From: "Timothy J. Wood" <email@hidden>)
 >Re: "Arguments" dictionary in NSXML (From: Scott Ahten <email@hidden>)

  • Prev by Date: mainbundle and frameworks
  • Next by Date: Difficulty adding and removing objects from "nested" NSArrayControllers
  • Previous by thread: Re: "Arguments" dictionary in NSXML
  • Next by thread: Making custom looks for controls
  • Index(es):
    • Date
    • Thread