Re: Agent that displays a window with textbox
Re: Agent that displays a window with textbox
- Subject: Re: Agent that displays a window with textbox
- From: Jens Alfke <email@hidden>
- Date: Tue, 21 Jun 2011 10:44:14 -0700
On Jun 21, 2011, at 2:11 AM, Nick wrote:
> But if an application is an agent, when i press "Control+V", the text can't
> be pasted in the textbox (it can be passed using a context menu, though)
[You mean Command-V, right?]
I think this depends on what you mean by “agent”. In Apple’s terminology, an agent is a background process with no UI that’s running in the user’s login session. Since your process has a window, it’s not strictly speaking an agent — how is the code packaged? If you’ve packaged your code to be truly background-only, but it links against AppKit and opens a window, I think all bets are off and you can expect things to misbehave. But if you just want a process that doesn’t show up in the Dock but can still open windows, what you want is an LSUIElement (look that up in the Apple docs.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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