Possible to copy bundle's framework to file system?
Possible to copy bundle's framework to file system?
- Subject: Possible to copy bundle's framework to file system?
- From: Dale Gillard <email@hidden>
- Date: Sun, 14 Nov 2004 23:03:12 +1100
I'd like to 'install' a framework from my app's bundle to
~/Library/Frameworks. I don't want to create an installer to do this,
but to copy the framework from the bundle and then remove it when my
app quits.
I've tried using NSFileManager's copyPath:toPath:handler: method and
NSWorkspace's performFileOperation:source:destination:files:tag: method.
However, this has strange results - copying part of the framework, or
copying it and changing it to a UNIX executable. NB I've used various
framework paths too:
[[NSBundle mainBundle] privateFrameworksPath] and
[[NSBundle mainBundle] pathForResource: @"frameworkName" ofType:
@"framework" inDirectory: [... privateFrameworksPath]
At the moment it looks like I'll have to create a Support/Frameworks
folder in my app's folder, and install the framework from here.
Am I missing something obvious, or is 'installing' a framework from my
app's bundle not possible for some reason?
Thanks.
Dale Gillard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden