• 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: Install Plugin From App Bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 D ada
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.


References: 
 >Install Plugin From App Bundle (From: "Ian G. Gillespie" <email@hidden>)
 >Re: Install Plugin From App Bundle (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Hi
  • Next by Date: Re: NSImage allocation issues [UPDATE]
  • Previous by thread: Re: Install Plugin From App Bundle
  • Next by thread: RE: Text message
  • Index(es):
    • Date
    • Thread