• 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: Building Paths (was Enabling NSButton)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Enabling NSButton (From: Rob Campanaro <email@hidden>)

  • Prev by Date: Re: SIGTRAP in NSURLConnection
  • Next by Date: Re: RS: appendFormat allocation implications
  • Previous by thread: Re: Enabling NSButton
  • Next by thread: Re: Enabling NSButton
  • Index(es):
    • Date
    • Thread