Created
August 4, 2011 13:56
-
-
Save floriankrueger/1125202 to your computer and use it in GitHub Desktop.
CPViewCollectionItem from Cib Problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. | |
// --- create the collection item (prototype) | |
var myCollectionItem = [[CPCollectionViewItem alloc] initWithCibName:@"MyCollectionCell" bundle:[CPBundle mainBundle]]; | |
[myCollection setItemPrototype:myCollectionItem]; //set the item prototype | |
.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4322011-08-04 15:46:29.955 Cappuccino [info]: loaded | |
CPInternalInconsistencyException: View for <CPCollectionViewItem 0x0050f9> could not be loaded from Cib or no view specified. Override loadView to load the view manually. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation MyCollectionCell : CPView | |
{ | |
@outlet CPImageView postImage; | |
@outlet CPTextField labelTitle; | |
.. | |
} | |
- (void)awakeFromCib | |
{ | |
CPLog("loaded"); | |
} | |
- (void)setRepresentedObject:(MyEntry)myItem | |
{ | |
[labelTitle setStringValue:[floatItem title]]; | |
.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment