• 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: NSTask with non-ASCII paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask with non-ASCII paths


  • Subject: Re: NSTask with non-ASCII paths
  • From: Severin Kurpiers <email@hidden>
  • Date: Sat, 8 Jan 2005 13:26:59 +0100

Hi,

my advice cannot work. Sorry that I've posted untested code :(

Severin Kurpiers
Verek Ltd.

On 8. Jan 2005, at 08:22, Severin Kurpiers wrote:

Hi Andrew,

try to do it this way:

- (int) performSipsTransformation: (NSMutableArray *) arguments {
          NSString *parentPath = [absolutePath
stringByDeletingLastPathComponent];
          NSString *name = [absolutePath lastPathComponent];

          [arguments addObject: [name fileSystemRepresentation]];

          NSTask *sipsTask = [[[NSTask alloc] init] autorelease];
          [sipsTask setLaunchPath: @"/usr/bin/sips"];
          [sipsTask setCurrentDirectoryPath: [parentPath
fileSystemRepresentation]];
          [sipsTask setArguments: arguments];
          [sipsTask launch];
          [sipsTask waitUntilExit];
          return [sipsTask terminationStatus];
}

Does it work as expected?

Bye,

Severin Kurpiers
Verek Ltd.

_______________________________________________ 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
  • Prev by Date: periodic events
  • Next by Date: mouseExited: acts very unreliably?
  • Previous by thread: Re: NSTask with non-ASCII paths
  • Next by thread: Verizon email problems
  • Index(es):
    • Date
    • Thread