Re: GUI Calls in Tool Executable seem to be No-Op. Nice, but safe?
Re: GUI Calls in Tool Executable seem to be No-Op. Nice, but safe?
- Subject: Re: GUI Calls in Tool Executable seem to be No-Op. Nice, but safe?
- From: Jerry Krinock <email@hidden>
- Date: Tue, 17 Mar 2009 21:17:18 -0700
On 2009 Mar 15, at 08:49, Michael Ash wrote:
For example, Apple could easily decide in 10.6 (or even 10.5.7) that
NSAlert really could do with an explicit call to NSApplicationLoad for
convenience. Now you are screwed.
Yes.
Do the right thing, and don't make GUI calls if you don't want GUI
stuff.
OK, I'm working on it.
(Note that if your command-line tool is intended to be used from
anywhere, for example from an ssh session as a different user from the
one logged in to the GUI, then you shouldn't even *link* against
AppKit in the tool, much less call it.)
I believe it's OK for my tool to link against AppKit since, in the
context of TN2083, it my tool is an agent and not a daemon, and also I
"intend" for it to be launched only by launchd, or by another agent
which is itself launched by launchd.
Thanks, Michael.
_______________________________________________
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