• 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: NSTableView: serious flaw when it comes to text edition? [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView: serious flaw when it comes to text edition? [SOLVED]


  • Subject: Re: NSTableView: serious flaw when it comes to text edition? [SOLVED]
  • From: Stephane Sudre <email@hidden>
  • Date: Tue, 6 Sep 2005 19:02:35 +0200


On 6 sept. 05, at 12:26, Stephane Sudre wrote:

Let's say I have a NSTableView with one column for text edition.

If I set the data cell of the column to be a NSTextFieldCell, when I click on a cell in that column, - (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *) inColumn row:(int) inRow is not invoked.

If I set the data cell of the column to be a subclass of NSTextFieldCell, when I click on a cell in that column, - (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *) inColumn row:(int) inRow is invoked.
[...]


OK, this kind of weird behavior actually happens when you call [self setStringValue:] within the drawInteriorWithFrame of the subclass. Avoiding to use setStringValue and dealing with the _contents ivar is solving the problem.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSTableView: serious flaw when it comes to text edition? [SOLVED]
      • From: "John C. Randolph" <email@hidden>
References: 
 >NSTableView: serious flaw when it comes to text edition? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Sleepycat DB
  • Next by Date: NSTextView - setSelectedRange hides caret?
  • Previous by thread: NSTableView: serious flaw when it comes to text edition?
  • Next by thread: Re: NSTableView: serious flaw when it comes to text edition? [SOLVED]
  • Index(es):
    • Date
    • Thread