• 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: Launching Cocoa Application externally
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching Cocoa Application externally


  • Subject: Re: Launching Cocoa Application externally
  • From: Stéphane <email@hidden>
  • Date: Wed, 14 May 2008 15:55:42 +0200


On May 14, 2008, at 3:48 PM, Yann Disser wrote:

When I launch my Cocoa application from Finder instead of from within XCode, it reports a crash. All my other Projects seem to work well from outside XCode...

I tried to debug my App by changing the main-function to

int main(int argc, char *argv[])
{
[[NSString stringWithString:@"hier"] writeToFile:@"debug.txt" atomically:YES];
exit(0);
return NSApplicationMain(argc, (const char **) argv);
}


From within XCode this writes the file "debug.txt". From Finder it doesn't. The same behaviour occurs with my other apps.

Where is "debug.txt" supposed to be created according to you?

Maybe someone has an idea why my App crashes when launches from Finder/Terminal and runs perfectly from within XCode?

There's a bug in your code or in your Info.plist.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Launching Cocoa Application externally (From: Yann Disser <email@hidden>)

  • Prev by Date: Launching Cocoa Application externally
  • Next by Date: Re: Launching Cocoa Application externally
  • Previous by thread: Launching Cocoa Application externally
  • Next by thread: Re: Launching Cocoa Application externally
  • Index(es):
    • Date
    • Thread