more efficient way to update CPCollectionView content?

4 views
Skip to first unread message

Justin

unread,
Jan 5, 2010, 4:38:39 PM1/5/10
to Cappuccino & Objective-J
Hi all,

Following the flickr demo I'm calling view::setContent and passing it
a copy of a CPArray. Is there a more efficient way to do this?

cheers,
Justin

Randy Luecke

unread,
Jan 5, 2010, 8:59:28 PM1/5/10
to Cappuccino & Objective-J
reloadContent should work

Justin

unread,
Jan 5, 2010, 11:54:01 PM1/5/10
to Cappuccino & Objective-J
cheers Randy, that works well. I apologise for not digging into
CPCollectionView myself!

cheers,
Justin

Justin

unread,
Jan 6, 2010, 8:22:57 PM1/6/10
to Cappuccino & Objective-J
fyi, reloadContent turned out to be the real culprit as it blows away
everything in the view and then puts it all back rather than doing an
insert. I ended up writing my own view.

cheers,
Justin

Reply all
Reply to author
Forward
0 new messages