• 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: Correct behavior of NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct behavior of NSTableView?


  • Subject: Re: Correct behavior of NSTableView?
  • From: Drew McCormack <email@hidden>
  • Date: Wed, 7 Nov 2001 08:53:34 +0100

If I have an NSTableView where the cells are editable, I begin to edit a
cell, and while editing the cell I call "setRowHeight:", the rows of the
table do resize, but the field editor does not. Surely this is incorrect
behavior. If I call setRowHeight:, surely the NSTableView is responsible
for resizing the NSTextView (field editor) which it has control over.

My guess is that setRowHeight: isn't meant to be called in the middle of an editing session. Whether this is a bug or a feature is up for debate. In any case, you might want to try ending the editing session, then setting the row height and restart the editing. This might look a little funky, and it might not do as a permanent solution, but it would at least confirm my suspicion.

I'm sure you are right about this, but as you say it doesn't really help me in the long run. I definitely think the NSTableView, and any other NSView, should be responsible for updating the field editor if it makes use of it. It may not be a bug, but what I am doing seems to be a legitimate use, and it doesn't work.

I guess nobody is willing to help me with a solution. Hasn't anyone ever had to deal with the field editor before? Can't someone point me to some sample code which may help?

Cheers,
Drew McCormack


  • Follow-Ups:
    • Re: Correct behavior of NSTableView?
      • From: Chuck Pisula <email@hidden>
References: 
 >Re: Correct behavior of NSTableView? (From: Brian Webster <email@hidden>)

  • Prev by Date: Re: dataWithContentsOfURL
  • Next by Date: Re: Catching key events
  • Previous by thread: Re: Correct behavior of NSTableView?
  • Next by thread: Re: Correct behavior of NSTableView?
  • Index(es):
    • Date
    • Thread