On Jan 2, 2013, at 7:49 AM, Jerry Krinock <je...@ieee.org> wrote: > > 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 :(
What were you expecting to accomplish by sending -lockFocus to the field editor? That pushes a new graphics state onto the stack and transforms the CTM by the receiver's bounds and flippedness. All you've done is mess up your graphics state. Wild-ass guess: your view is layer-backed but its enclosing scroll view is not. --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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com