• 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: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


  • Follow-Ups:
    • Re: [NSOutlineView reloadData]
      • From: "Shawn Erickson" <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>)

  • Prev by Date: Re: [NSOutlineView reloadData]
  • Next by Date: Re: [NSOutlineView reloadData]
  • Previous by thread: Re: [NSOutlineView reloadData]
  • Next by thread: Re: [NSOutlineView reloadData]
  • Index(es):
    • Date
    • Thread