Re: application:openFile: usage
Re: application:openFile: usage
- Subject: Re: application:openFile: usage
- From: Daniel Todd Currie <email@hidden>
- Date: Wed, 20 Oct 2004 11:57:48 +0900
In your main.m source file, you could check argv for launch arguments.
If I understand you correctly, argv will be different in the two cases
you suggest.
-- DTC
On 2004 Oct 20, at 11:49, Dennis Falling wrote:
Yeah, that was my thought, but I don't know how to see which launch
type was used. I can't just set a boolean in that method, because
that same method will be called whether the application is already
open or not.
-dennis
On Oct 19, 2004, at 9:42 PM, Dennis Falling wrote:
Yeah, that was my thought, but I don't know how to see which launch
type was used. I can't just set a boolean in that method, because
that same method will be called whether the application is already
open or not.
-dennis
On Oct 19, 2004, at 9:32 PM, Daniel Todd Currie wrote:
I'm not sure I understand the difference exactly, but could you
perhaps use a BOOL instance variable to store which launch type was
used? Then in the -applicationShouldTerminate: delegate method, you
can refer to the BOOL and quit or not, depending on the BOOL's
value.
-- DTC
On 2004 Oct 20, at 10:22, Dennis Falling wrote:
How can I get my application to quit if the call to
application:openFile: launched it, but not if it was launched
normally and then this method was used?
Thanks,
-dennis falling
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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