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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Cappuccino & Objective-J
reloadContent should work
Justin
unread,
Jan 5, 2010, 11:54:01 PM1/5/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.