Re: Building Paths (was Enabling NSButton)
Re: Building Paths (was Enabling NSButton)
- Subject: Re: Building Paths (was Enabling NSButton)
- From: Ricky Sharp <email@hidden>
- Date: Sat, 2 Jun 2007 21:44:00 -0500
On Jun 2, 2007, at 9:08 PM, Rob Campanaro wrote:
What I have so far is:
NSString *theComponent = "LAC42001.qxp";
NSString *compID = [theComponent subStringToIndex:3];
NSString *compIDFolder = [theComponent subStringToIndex:5];
NSString *originPath =
"/Users/mktrca/Desktop/Production/compID/compIDFolder/theComponent";
NSString *destPath = "/Users/mktrca/Desktop/preflight/theComponent";
NSFileManager *nSFM = [nSFM defaultManager];
[nSFM copyPath: originPath toPath: destPath handler:nil];
Obviously the concatenation is being done incorrectly.
Hope that makes sense.
Look at the various path APIs of NSString (e.g.
stringByAppendingPathComponent:)
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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