• 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: 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


  • Follow-Ups:
    • 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: Kyle Sluder <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>)

  • Prev by Date: Re: Editing multiple selections with bindings
  • Next by Date: Duplicating display UITable scrolling, etc. in two apps
  • 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