Re: must change control of NSTokenField selection
Re: must change control of NSTokenField selection
- Subject: Re: must change control of NSTokenField selection
- From: "Justin R. Miller" <email@hidden>
- Date: Fri, 23 Feb 2007 07:59:43 -0500
On Feb 23, 2007, at 2:26 AM, mabo68 wrote:
Hi
I use a NSTokenField with completion.
The completion is an array of string.
Wenn the completion is diplayed, it is possible
to select a item by pressing ENTER or SPACE.
I need to have the possibility to select an item
in the completion list only by pressing ENTER.
SPACE musst by used as text, not as selection
control.
How can I do change that ?
As anyone an Idea ?
I believe you want NSControl's delegate method:
control:textView:doCommandBySelector:
Though I'm not sure if you can catch the 'space' command here;
typically it's for things like arrow keys, escape, return, tab, etc.
But worth some investigation.
--
Justin R. Miller
Code Sorcery Workshop
http://codesorcery.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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