CPCollectionViewItem & Bindings

84 views
Skip to first unread message

Udo Schneider

unread,
Feb 12, 2015, 11:38:18 AM2/12/15
to objec...@googlegroups.com
All,

is CPCollectionViewItem supposed to support bindings? I can create CPCollectionViews and customised CPCollectionViewItem views in IB w/o any problem. Aside from some resizing issues I do even see the correct number of items in the CollectionView. But it seems that the CPCollectionViewItem view doesn't pick up the bindings.

Anyone?

Best Regards,

Udo

Cacaodev cacaodev

unread,
Feb 13, 2015, 12:14:11 PM2/13/15
to objec...@googlegroups.com
CPCollectionViewItem supports bindings only if it is in a standalone cib. See CPCollectionView the documentation.

Udo Schneider

unread,
Feb 17, 2015, 7:50:06 AM2/17/15
to objec...@googlegroups.com
Thanks for the hint. I found the segment in the docs.

Putting the CPCollectionViewItem and its view into a separate cib works.

Although I have to admit I swapped CPCollectionView with CPTableView now. Unless I've missed something the functionality and bindings support in CPCollectionView is not great yet :-(

CU,

Udo

Cacaodev cacaodev

unread,
Feb 17, 2015, 3:44:28 PM2/17/15
to objec...@googlegroups.com
Le mardi 17 février 2015 13:50:06 UTC+1, Udo Schneider a écrit :

Although I have to admit I swapped CPCollectionView with CPTableView now. Unless I've missed something the functionality and bindings support in CPCollectionView is not great yet :-(

In CPCollectionView we have bindings for content and selectionIndexes. Is there something not working or other binding support that would be useful ? 

Udo Schneider

unread,
Feb 18, 2015, 3:46:30 AM2/18/15
to objec...@googlegroups.com
This was my mistake. After taking a look at the tests I realised I need to bind selectionIndexes as well. Now everything works as expected and am back (again) to using CPCollectionView.

Thanks,

Udo

daboe01

unread,
Feb 19, 2015, 3:04:23 PM2/19/15
to objec...@googlegroups.com
lazy DOM loading :-)
best greetings,
daniel

Cacaodev cacaodev

unread,
Mar 2, 2015, 1:31:20 PM3/2/15
to objec...@googlegroups.com


Le jeudi 19 février 2015 21:04:23 UTC+1, daboe01 a écrit :
lazy DOM loading :-)

Hey Daniel,
Can you remind me what is the state of this (CPCollectionView lazy loading).
I have a branch for this and I remember we talked about it but I can't find any issue or pr ... 

daboe01

unread,
Mar 2, 2015, 2:10:28 PM3/2/15
to objec...@googlegroups.com
your branch was fully functional when i tested it some months ago.
you did not file the PR because you did not write the unit tests yet.
best greetings,
daniel
Reply all
Reply to author
Forward
0 new messages