• 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: packaging external binaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: packaging external binaries


  • Subject: Re: packaging external binaries
  • From: Eric Peyton <email@hidden>
  • Date: Fri, 29 Jun 2001 09:10:40 -0500

Add your binary as a resource in to the project (as if it was an image, for example) and your data file as a reosurce in the project.

Then access the binary using the [[NSBundle mainBundle] pathForResource:@"<binary name>" ofType:@""]; and do the same with the data file. NSBundle makes it very easy.

It's easy as apple pie :-)

Eric

On Friday, June 29, 2001, at 12:14 AM, Darin Duphorne wrote:

Now that the NSTask is working, is it possible to bundle the binary and its data file within the application bundle so that they aren't separate files for install and so that they don't get moved out of the proper path?
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >packaging external binaries (From: Darin Duphorne <email@hidden>)

  • Prev by Date: RE: NSFileManager
  • Next by Date: Re: Oddities in Cocoa/Java object initialization?
  • Previous by thread: packaging external binaries
  • Next by thread: store the NSPoint in an dictionary
  • Index(es):
    • Date
    • Thread