• 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
NSTableView reloadData question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView reloadData question


  • Subject: NSTableView reloadData question
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 17 Apr 2002 14:53:52 -0400

The following note about NSTableView reloadData appears In the AppKit
release notes for Developer Preview 2. Can anybody tell me whether it is
still valid?

"Some notes on cell editing and data reloading: When the reloadData method
is called, any cell that is in the midst of being edited will lose the
editing changes currently in progress. (I.e., a cell that has the blinking
cursor at the time of the reload will lose whatever has changed.) This can
be remedied by explicitly ending the editing session before the reload,
which will preserve the data in the cell. Before sending reloadData to the
Table View, send endEditingFor: to the window in which it lives. For
example:

[[myTabView window] endEditingFor:self];
[myTabView reloadData];"

My experiments with reloadData suggest that its behavior has since been
revised. It calls the dataSource's
tableView:setObjectValue:forTableColumn:row: method in an apparent attempt
to write the edited value to the row before reading the dataSource into the
table.

Can anybody confirm that this behavior is the result of a revision to
reloadData since DP2 intended to change the noted behavior?

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Hello, a book recommendation request, and a question
  • Next by Date: Re: Hello, a book recommendation request, and a question
  • Previous by thread: Re: NSTableView reloadData question
  • Next by thread: Open Resource File with Cocoa Path
  • Index(es):
    • Date
    • Thread