Re: One problem solved, another cropped up
Re: One problem solved, another cropped up
- Subject: Re: One problem solved, another cropped up
- From: Eric Albert <email@hidden>
- Date: Thu, 29 Jul 2004 22:55:05 -0700
On Jul 29, 2004, at 1:50 PM, David "Pita" Kopp wrote:
Anyway, next (and hopefully last) problem is that apparently the OS is
passing some parameters to the application when it's run via
double-clicking the .app package. Any ideas what these are? Any idea
WHY they are passed, and if there's any way I can tell it to not do
that? This app is meant to be able to be run from the command line as
well with filenames as arguments, so it causes issues if a
non-filename argument is passed, it just exits without finding the
'file'.
I think you're talking about the -psn_* argument that gets passed to
double-clicked applications. That used to be there because Launch
Services needed it, but I don't think it's necessary any more. It's
probably still there for compatibility reasons (apps that expect it
would break if it was removed). I don't think there's any way to turn
it off. I'd suggest ignoring the first argument if it starts with
"-psn_".
Hope this helps,
Eric
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.