• 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: adding an executable as a resource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding an executable as a resource


  • Subject: Re: adding an executable as a resource
  • From: Markus Hitter <email@hidden>
  • Date: Fri, 9 Dec 2005 15:36:47 +0100


Am 09.12.2005 um 14:08 schrieb Ron Fleckner:

I'm a bit worried because it was so easy to do.

Welcome to Cocoa/Obj-C.

There are only eleven lines of code inside the action method!

You could get away with 3 lines (roughly):

char * command[MAX_PATH * 2];
sprintf(command, "%s/Resources/lame %s", [[[NSBundle mainBundle] bundlePath] UTF8String], filename);
system(command);

But you'd loose some useful nuggets.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________
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:
    • Re: adding an executable as a resource
      • From: "Sean McBride" <email@hidden>
    • Re: adding an executable as a resource
      • From: Damien Bobillot <email@hidden>
    • Re: adding an executable as a resource
      • From: Rosyna <email@hidden>
    • Re: adding an executable as a resource
      • From: Daniel Jalkut <email@hidden>
References: 
 >adding an executable as a resource (From: Ron Fleckner <email@hidden>)

  • Prev by Date: adding an executable as a resource
  • Next by Date: threads vs run-loops for keeping your GUI responsive
  • Previous by thread: adding an executable as a resource
  • Next by thread: Re: adding an executable as a resource
  • Index(es):
    • Date
    • Thread