On 18 Apr '08, at 1:21 PM, David Wilson wrote:
A command line tool or a true background daemon can't really pull it off- the process wouldn't have a connection to the window server to actually do any of that.
A command-line tool, invoked from a logged-in user account, can use a GUI if it's linked against the appropriate libraries (like AppKit). As a trivial example, you can launch a regular Cocoa app from a shell by just running its binary directly.
But this usually isn't a good idea for something that's primarily meant as a daemon or tool. A better way to do simple alert-style interaction is to use the API in CFUserNotification.h. This doesn't require you to link against anything higher-level than CoreFoundation. The downside is that it's kind of messy to use for anything beyond a simple "message and OK button" alert; but I think there is sample code with examples.
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]