Re: Text Field Cells in Table View: Enabled and Editable not working
Re: Text Field Cells in Table View: Enabled and Editable not working
- Subject: Re: Text Field Cells in Table View: Enabled and Editable not working
- From: Jerry Krinock <email@hidden>
- Date: Wed, 02 Jan 2013 07:49:32 -0800
On 2013 Jan 02, at 06:36, Keary Suska <email@hidden> wrote:
> How about the "Conditionally sets editable" checkbox? Best if unchecked--maybe also "Conditionally sets enabled"...
Seems like a good idea, Keary, so I rebuilt with all four possible combinations of "Conditionally sets editable|enabled". Result: No change; all four no good.
I've also done some digging into the field editor with the debugger. The field editor is initially nil, as expected, and is created the first time that I click a text cell, as expected. It is an NSTextView, framed in the cell I'm attempting to edit, relative to the table view…
(lldb) po 0x107c0a3f0
(long) $5 = 4425032688 <NSTextView: 0x107c0a3f0>
Frame = {{85.00, 39.00}, {100.00, 17.00}}, Bounds = {{0.00, 0.00}, {100.00, 17.00}}
Horizontally resizable: YES, Vertically resizable: YES
MinSize = {100.00, 17.00}, MaxSize = {40000.00, 40000.00}
(lldb) po [0x1020212f0 superview]
(id) $6 = 0x000000010201dde0 <_NSKeyboardFocusClipView: 0x10201dde0>
(lldb) po [0x000000010201dde0 superview]
(id) $7 = 0x000000010d441030 <NSTableView: 0x10d441030>
It is editable…
(lldb) p (int)[0x107c0a3f0 isEditable]
(int) $8 = 1
If I pause execution and send it a -lockFocus message while attempting to edit text in a cell,
(lldb) expr (void)[0x107c0a3f0 lockFocus]
<no result>
it still remains gray and unresponsive to keyboard input :(
* * *
But we shall solve this!
_______________________________________________
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