Re: Deselect keyboard focus of an NSMatrix cell

2010-07-25 Thread Jochen Moeller
Hello Kyle, you are right, I did not call -endEditingFor: because in the example given in the reference this method is only called when -makeFirstResponder: returns NO. But in my case -makeFirstResponder:view returns YES, so the view (custom content view or text field object) should have the

Re: Deselect keyboard focus of an NSMatrix cell

2010-07-24 Thread Jochen Moeller
Hi, so it is programmatically still not possible to give the key focus to a view with -makeFirstResponder: when a text field cell is selected in a matrix. Therefore I submitted a bug report with Bug ID# 8231732. My workaround is to replace the matrix by single text field objects. Regards,

Re: Deselect keyboard focus of an NSMatrix cell

2010-07-24 Thread Kyle Sluder
On Jul 24, 2010, at 3:03 PM, Jochen Moeller jo.moel...@online.de wrote: Hi, so it is programmatically still not possible to give the key focus to a view with -makeFirstResponder: when a text field cell is selected in a matrix. Therefore I submitted a bug report with Bug ID# 8231732. I

Deselect keyboard focus of an NSMatrix cell

2010-07-22 Thread Jochen Moeller
Greetings, I want to be able to deselect the keyboard focus of a control after hitting Return, whereas Tab moves to the nextKeyView. When using editable NSTextField objects I can achieve this in the action method with: [ window makeFirstResponder:[ window contentView ]]; But when using

Re: Deselect keyboard focus of an NSMatrix cell

2010-07-22 Thread Kyle Sluder
On Thu, Jul 22, 2010 at 11:05 AM, Jochen Moeller jo.moel...@online.de wrote: Greetings, I want to be able to deselect the keyboard focus of a control after hitting Return, whereas Tab moves to the nextKeyView. This is accomplished by the field editor. See the documentation for -[NSText

Re: Deselect keyboard focus of an NSMatrix cell

2010-07-22 Thread Jochen Moeller
Hello Kyle, thanks for your answer. I did as you suggested. But both -makeFirstResponder: and -resignFirstResponder return YES after pressing Return in the textFieldCell. So in my new test version the focus should move to an NSTextField after Return is pressed in the textFieldCell within the