• 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
Possible to copy bundle's framework to file system?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Newbie question adding text to NSTextView
      • From: Daniel T <email@hidden>
    • Re: Possible to copy bundle's framework to file system?
      • From: Brian Christensen <email@hidden>
  • Prev by Date: Re: How to implement iChat's smiley popup in the text entry field
  • Next by Date: Re: Customizing an NSSearchField
  • Previous by thread: Re: Customizing an NSSearchField
  • Next by thread: Re: Possible to copy bundle's framework to file system?
  • Index(es):
    • Date
    • Thread