Re: NSTableView controlTextDidChange:
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