Re: application quit right after launching
Re: application quit right after launching
- Subject: Re: application quit right after launching
- From: Cesare Marilungo <email@hidden>
- Date: Tue, 26 Feb 2002 01:23:33 +0100
Lunedl, Febbraio 25, 2002, alle 08:01 PM, Finlay Dobbie ha scritto:
On Saturday, February 23, 2002, at 10:57 PM, email@hidden wrote:
Any clue?
What should I check?
Learn how to use a debugger?
-- Finlay
Thanks Finlay,!
Sarcastic?
The debugger didn't help because from project builder i didn't get any
error and the app run flawlessly.
Karl Hsu suggested me to use console.app. I used it and found that my
fopen calls were looking for files on another path and not into the
'build' folder like they do when the app is launched via pb.
Now I use NSOpenPanel to get the filename from the user, and pass the
path to fopen.
I asked this stupid question to this list because i wanted to know what
kind of parameters and states the pb use when launching an app. to give
me this different behaviors. I was assuming that launching my app
doubleclicking on its icon is the same than running it from pb (apart
from the additional debugging stuff).
BTW I've just begun using macosx developer stuff and using cocoa and
objective c to wrap an interface around a simple opengl app. So I don't
know, for this environment, any other debugger than pb debugger, and
still don't know how to use it from an app that is launched from the
finder.
Also, I still don't know how to change the current working directory so
that all subsequent fopen assume that the path is specified relatively
to where the app resides.
So, shame on me for asking those stupid questions. I'll never do that
again. :-(
And sorry for my poor english,
Cesare
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.