On 19 May '08, at 4:49 AM, Kyle Sluder wrote:
- load the template from resource fileRead the documentation on NSBundle.
Specifically, the -pathToResource... family of methods will give you absolute paths to files in your Resources directory. (NSBundle doesn't load the files for you, though.)
- search and replace the file to produce another file.Read the documentation on NSXMLParser.
NSXMLDocument would work better. Initialize one given the path to the file, then use XPath expressions on the root NSXMLElement to find the locations to replace, then change the contents of those elements. Finally, get the string of the entire document and write that to a file (using -[NSString writeToFile:].)
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]