• 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: Re: NSTableView is not updated.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Re: NSTableView is not updated.
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Licensing question (off-topic)
  • Next by Date: Re: Cross-platform toolkit with a Cocoa backend
  • Previous by thread: Re: NSTableView is not updated.
  • Next by thread: Re: Re: NSTableView is not updated.
  • Index(es):
    • Date
    • Thread