Re: Deselect keyboard focus of an NSMatrix cell
Re: Deselect keyboard focus of an NSMatrix cell
- Subject: Re: Deselect keyboard focus of an NSMatrix cell
- From: Jochen Moeller <email@hidden>
- Date: Sun, 25 Jul 2010 17:58:45 +0200
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 field editor.
Now I catched up the call to -endEditingFor:anId whereat for "anId" I tried the latest selected cell of the matrix or the matrix itself. Both had no effect, unfortunately. The key focus (blue selected content of the cell with focus ring around) remained in the cell of the matrix when hitting Return. In the bugreport I attached the project folder as demo.
Cheers and thanks a lot,
Jochen Moeller
Am 25.07.2010 um 02:20 schrieb Kyle Sluder:
> On Jul 24, 2010, at 3:03 PM, Jochen Moeller <email@hidden> 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 notice that in your last email you didn't mention calling -endEditingFor:. Did you try this? What were the results?
>
> --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