• 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 controlTextDidChange:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView controlTextDidChange:


  • Subject: Re: NSTableView controlTextDidChange:
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 18 Jun 2006 21:34:31 -0700
  • Thread-topic: NSTableView controlTextDidChange:

on 06/06/18 20:28, Neto at email@hidden wrote:

> I'm trying to set the dirty flag of a file when I change an
> NSTableView content.
> I delegated the NSTableView to MyDocument and used
>
> - (void)controlTextDidChange:(NSNotification *)nd
> {
> [self updateChangeCount: NSChangeDone];
> }

I presume that you have read

ADC Home > Reference Library > Guides > Cocoa > User Experience > Table View
Programming Guide

and have implemented a Table Data Source, which includes implementation of
tableView:setObjectValue:forTableColumn:row:.

I'm not sure why controlTextDidChange: does not work for your table, but I
wouldn't trust it anyhow.  Implement updateChangeCount: in
tableView:setObjectValue:forTableColumn:row:, preferably after you have
verified that a bona fide change has been made and updated your data model.


 _______________________________________________
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

References: 
 >NSTableView controlTextDidChange: (From: Neto <email@hidden>)

  • Prev by Date: Re: Trouble with sheets...
  • Next by Date: Bundle vs. Framework for plugins
  • Previous by thread: NSTableView controlTextDidChange:
  • Next by thread: Re: NSWindow's setContentView
  • Index(es):
    • Date
    • Thread