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

Re: caching NSCollectionView


  • Subject: Re: caching NSCollectionView
  • From: Georg Seifert <email@hidden>
  • Date: Mon, 23 Jun 2008 22:21:48 +0200

Does anybody got saving the item views working. I filed a but at apple about
this but i was curios if anyone found a workaround.

The answer to this question depends entirely on what you're trying to accomplish (and how you have things wired). Unless you have a very good reason, however, you're probably going about this the wrong way. That is, the views should be dictated by the objects they represent.

 If you store all the states (sort order, etc.) in the model objects
you represent with the collection view and its items, all you need to
do is restore those model objects (assuming they're wired up to your
collection view) and they should be working just fine (and with no
effort once everything's set up if you're using Core Data and
Bindings).

So ... why are you trying to save the views?

the NSColletionView is bound to an array of 300-2000 instances of myClass. If I filter this array (setting a predicate on the ArrayController) and than change back to see all Elements, the CollectionView regenerates all the item views for the elements I did not saw during filtering. This takes several second (on my Powerbook).


To save the viewItems for a later use would solve the speed issue.

Are there better approches speeding things up??

Thanks
Georg


_______________________________________________

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: 
 >caching NSCollectionView (From: Georg Seifert <email@hidden>)
 >Re: caching NSCollectionView (From: "I. Savant" <email@hidden>)

  • Prev by Date: re: Learning SQLite by watching Core Data?
  • Next by Date: Re: Learning SQLite by watching Core Data?
  • Previous by thread: Re: caching NSCollectionView
  • Next by thread: NSDateFormatter -- accepting different formats at runtime
  • Index(es):
    • Date
    • Thread