Modal popup from command line tool or daemon?

2008-04-18 Thread Rod Cater
Hi I'm new to Cocoa and I'm trying to figure out how to create a simple popup which can be displayed from a command line tool or a background process. Ideally it would be something like NSAlert plus a text input field. I've been reading Apple's docs on windows, documents and the various

Re: Modal popup from command line tool or daemon?

2008-04-18 Thread David Wilson
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. The best bet, I think, would be to have a small helper application that could be launched to display the appropriate alert; the helper

Re: Modal popup from command line tool or daemon?

2008-04-18 Thread Jens Alfke
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

Re: Modal popup from command line tool or daemon?

2008-04-18 Thread Rod Cater
I think the CFUserNotification API is exactly what I'm looking for, although I'm not pleased with daemons requiring user interaction in the first place. An earlier reply suggested Growl which I'm thinking is better suited for what I'm doing. Combined with a simple preference pane for