Re: [NSOutlineView reloadData]
Re: [NSOutlineView reloadData]
- Subject: Re: [NSOutlineView reloadData]
- From: David Blanton <email@hidden>
- Date: Thu, 8 Jan 2009 13:04:37 -0700
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!
Thanks!
On Jan 8, 2009, at 12:49 PM, j o a r wrote:
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 views will
be redisplayed at the end of the current event loop. This leads to
less "flickering", and less redundant redrawing.
Like I said in my last reply to you: We can't really help you
before you tell us what you're *really* trying to do.
j o a r
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