Re: Install Plugin From App Bundle
Re: Install Plugin From App Bundle
- Subject: Re: Install Plugin From App Bundle
- From: "Ian G. Gillespie" <email@hidden>
- Date: Sun, 2 May 2004 14:09:19 -0700
It turns out I was forgetting to make the destination path include the
name of the bundle I was copying:
I had this as the toPath, ~/Library/Contextual Menu Items
When I needed this, ~/Library/Contextual Menu Items/MyCMPlugin.plugin
Thanks Ondra.
On May 2, 2004, at 11:37, Ondra Cada wrote:
On 2.5.2004, at 20:11, Ian G. Gillespie wrote:
NSString *path = [[NSBundle mainBundle] pathForResource:@"MyCMPlugin"
ofType:@"plugin"];
NSLog(@"trying to copy from \"%@\"",path);
if(![[NSFileManager defaultManager] copyPath:path toPath:installPath
handler:nil])
NSLog(@"Couldn't install contextual menu plugin");
The plugin is in the bundle and the "Contextual Menu Items" is
created,
by the copy doesn't work. Anyone see what I am missing?
First try the above. Looks rather like the plugin is *not* in the
bundle (at least, not in the place you are expecting it to be).
If the "path" indeed contains a proper path, I am afraid you'll have
to implement the handler and log the process from there.
---
Ondra Dada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.