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 <kyle.slu...@gmail.com> wrote:
> On Wed, Aug 11, 2010 at 10:12 AM, slasktrattena...@gmail.com
> <slasktrattena...@gmail.com> 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 (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 arch...@mail-archive.com

Reply via email to