Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
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 E

Re: [NSOutlineView reloadData]

2009-01-08 Thread Shawn Erickson
On Thu, Jan 8, 2009 at 12:04 PM, David Blanton 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 yo

Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
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 ca

Re: [NSOutlineView reloadData]

2009-01-08 Thread j o a r
On Jan 8, 2009, at 11:07 AM, David Blanton wrote: My error ... I thought reloadData was asynchronous! It all depends on what you're after. Display updates are almost always delayed in Cocoa, meaning that the outline view will not show updated contents after your call to reloadData. All v

Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
My error ... I thought reloadData was asynchronous! On Jan 8, 2009, at 11:30 AM, j o a r wrote: On Jan 8, 2009, at 9:42 AM, David Blanton wrote: Is there a way to be notified when a reloadData operation is complete? What do you mean with complete? It's a regular synchronous method call

Re: [NSOutlineView reloadData]

2009-01-08 Thread j o a r
On Jan 8, 2009, at 9:42 AM, David Blanton wrote: Is there a way to be notified when a reloadData operation is complete? What do you mean with complete? It's a regular synchronous method call, so it's completed when it returns. I bet there's something that you're trying to do that you're