• 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
'ditto' troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'ditto' troubles


  • Subject: 'ditto' troubles
  • From: Steve Cronin <email@hidden>
  • Date: Tue, 23 Feb 2010 14:11:39 -0600

Folks;

This is a Mac application.

I have a helper app that I want to transport inside of a larger app (Mother)
At the user's discretion I want to deploy the helper app
The helper app CAN be called by AppleScript.

In order to help with Mother's file size and inadvertent calling of Helper (when not yet deployed)
	I want to do is compress the app inside of the mother application.
When the user asks for it I will decompress Helper and deploy into the local file system.

I have all of this working including a build step that compresses the appropriate release version of Helper
(/usr/bin/ditto -c -k --sequesterRsrc --keepParent)

At the time the user requests I initiate an NSTask and deploy:
	NSTask *unzipTask=[[NSTask alloc] init];
	[unzipTask setLaunchPath:@"/usr/bin/ditto"];
	[unzipTask setArguments:[NSArray arrayWithObjects:@"-x",@"-k",sourcePath,targetPath,nil]];

The problem is that the deployed Helper file has the 'X' icon and displays the "application is damaged.." message.

If I take the Helper.zip file from the 'contents' and manually double click it then the decompression works fine….

I'm so close and just I can't see what's stopping this deployment.
Is there a ditto flag I need to set that I'm not seeing?

Any thoughts appreciated!
Steve_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: 'ditto' troubles
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Core Data: Custom to-many relationship setter not being invoked
  • Next by Date: Re: Deprecated APIs
  • Previous by thread: custom NSActionCell in an NSTableView that uses Cocoa Bindings
  • Next by thread: Re: 'ditto' troubles
  • Index(es):
    • Date
    • Thread