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

Re: [NSOutlineView reloadData]


  • Subject: Re: [NSOutlineView reloadData]
  • From: David Blanton <email@hidden>
  • Date: Thu, 8 Jan 2009 13:41:13 -0700

To clarify.

App is running. User selects an item in the outline view. User quits app.

In windowWillClose save to user defaults an identifier for the item selected in the outline view.

At start up reload the outline view etc etc as already described.



On Jan 8, 2009, at 1:36 PM, Shawn Erickson wrote:

On Thu, Jan 8, 2009 at 12:04 PM, David Blanton <email@hidden> wrote:
I want to look through all the items, find the last one selected before the
app terminated so I can reselect that item. I wanted to be sure that all
items were loaded before I started looking.
Since reloadData is synchronous (thank you) I call my finding method right
after the reloadData call and I have the desired result!

I don't understand your need/desire to call reloadData in this situation... If the user has selected an item then that item must have been already known to the table/outline view. You only need to get the currently selected item and turn that into some identifier that you can persist. I see no reason to ask the table/outline reload things.

-Shawn



David Blanton




_______________________________________________

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


References: 
 >[NSOutlineView reloadData] (From: David Blanton <email@hidden>)
 >Re: [NSOutlineView reloadData] (From: j o a r <email@hidden>)
 >Re: [NSOutlineView reloadData] (From: David Blanton <email@hidden>)
 >Re: [NSOutlineView reloadData] (From: j o a r <email@hidden>)
 >Re: [NSOutlineView reloadData] (From: David Blanton <email@hidden>)
 >Re: [NSOutlineView reloadData] (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: [NSOutlineView reloadData]
  • Next by Date: Re: Checking facts on NSCell (e.g. in NSTableView)
  • Previous by thread: Re: [NSOutlineView reloadData]
  • Next by thread: Encryption and Security
  • Index(es):
    • Date
    • Thread