On Feb 14, 2010, at 9:28 PM, Gideon King wrote: > 1. Use NSTask to create a zip file, passing in as arguments all the filenames > to zip. My question about this would be whether I would run into any > restrictions with the length of the command which well be beyond the old 1024 > character limits (not sure if any command line argument limits are still > extant).
There is no 'command line' with NSTask (or with the execv system call it uses.) You pass an array of individual arguments that end up as the new process's argv[] array. There are no size limits that I know of. Note that this also means there is no need to encode characters in filesystem paths, even spaces and quotes, since they're not getting parsed by any shell. —Jens_______________________________________________ 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 arch...@mail-archive.com