Re: Disable return-edit in text cell
Re: Disable return-edit in text cell
Thanks! I read that prior to posting, and tried to intercept the
keystroke with control:textView:doCommandBySelector: - but it's only
called when ending the editing session. Anyway, I found the solution I
was looking for by simply catching the return key in keyDown: in the
table view. Duh...
-F
On Wed, Aug 11, 2010 at 7:16 PM, Kyle Sluder <email@hidden> wrote:
> On Wed, Aug 11, 2010 at 10:12 AM, email@hidden
> <email@hidden> wrote:
>> Hello,
>>
>> I've got a standard NSTableView with text cells. I want the field
>> editor to pop up when the user clicks on the cell, but not when
>> pressing the return key (which triggers another action). How can I
>> accomplish this? I've got a feeling there's a real simple solution,
>> but I just cannot find that magic button in IB.
>
> This is discussed in the text view documentation:
> http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextEditing/Tasks/InterceptKeys.html
>
> --Kyle Sluder
>
_______________________________________________
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