RE: Re: NSTableView is not updated.
RE: Re: NSTableView is not updated.
- Subject: RE: Re: NSTableView is not updated.
- From: jiwan park <email@hidden>
- Date: Thu, 12 Jul 2007 17:33:42 +0900
- Importance: normal
I tried to use 'reloadData' but there is a problem.
For example,
there are two programs and each program uses my NSTableView.
These NSTableViews use one 'data.plist'.
Then...
Two programs are executed at a time, and one program changes 'data.plist'.
Now, another program's NSTableView must be updated.
But, it calls 'objectValueForTableColumn' before 'numberOfRownInTableView'.!!
In this case,
I don't know where is 'reloadData's place...
> I have a NSTableView, and it has 'datafield.m' for dataSource and
> delegate.
> (TableView's dataSource outlet is connected 'datafield.m' and
> TableView's delegate outlet is connected 'datafield.m')
> In dataSource, using 'data.plist' by 'objectValueForTableColumn'
> and 'numberOfRownInTableView'.
>
> Now,
> when 'data.plist' is changed, NSTableView must be updated.
> But... it isn't.
Send the message -[NSTableView reloadData] to your table.
_______________________________________________
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