• 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: iPhone: NSOperation and UITableVIews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone: NSOperation and UITableVIews


  • Subject: Re: iPhone: NSOperation and UITableVIews
  • From: John Michael Zorko <email@hidden>
  • Date: Mon, 09 Nov 2009 12:13:06 -0800


Dave, Alex ...

An alternative implementation might be to have each cell queue up an operation when it needs to load an image (not the view controller). Then, each cell could cancel it's operation in [UITableViewCell prepareForReuse].


Cool -- I learned something today :-) I did this, so now the NSOperation * is stored in the cell, hence I can get it from prepareToReuse and call cancel on it. Nifty! I also set the tag of the cell and get it back in my refresh method, which means i'm only telling the cells currently displayed to load their artwork. The scrolling is still a bit jerky, though much much better, and nothing i've not seen in other apps on this device (first gen 8G iPod touch, running OS 2.2.1). I'm sure it will perform much better on a more recent device like my iPhone 3GS, but I like to test with the oldest thing I can :-)

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com



_______________________________________________

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: iPhone: NSOperation and UITableVIews
      • From: Alex Kac <email@hidden>
References: 
 >iPhone: NSOperation and UITableVIews (From: John Michael Zorko <email@hidden>)
 >Re: iPhone: NSOperation and UITableVIews (From: Dave Camp <email@hidden>)

  • Prev by Date: Trouble with initial position of NSScrollView
  • Next by Date: Re: iPhone: NSOperation and UITableVIews
  • Previous by thread: Re: iPhone: NSOperation and UITableVIews
  • Next by thread: Re: iPhone: NSOperation and UITableVIews
  • Index(es):
    • Date
    • Thread