Re: Install Plugin From App Bundle
Re: Install Plugin From App Bundle
- Subject: Re: Install Plugin From App Bundle
- From: Ondra Cada <email@hidden>
- Date: Sun, 2 May 2004 20:37:13 +0200
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 Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.