• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Text Field Cells in Table View: Enabled and Editable not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Kyle Sluder <email@hidden>
  • Date: Wed, 02 Jan 2013 08:22:43 -0800

On Jan 2, 2013, at 7:49 AM, Jerry Krinock <email@hidden> 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 (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


  • Follow-Ups:
    • Re: Text Field Cells in Table View: Enabled and Editable not working
      • From: Jerry Krinock <email@hidden>
References: 
 >Text Field Cells in Table View: Enabled and Editable not working (From: Jerry Krinock <email@hidden>)
 >Re: Text Field Cells in Table View: Enabled and Editable not working (From: Keary Suska <email@hidden>)
 >Re: Text Field Cells in Table View: Enabled and Editable not working (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Duplicating display UITable scrolling, etc. in two apps
  • Next by Date: Re: Editing multiple selections with bindings
  • Previous by thread: Re: Text Field Cells in Table View: Enabled and Editable not working
  • Next by thread: Re: Text Field Cells in Table View: Enabled and Editable not working
  • Index(es):
    • Date
    • Thread