Skip to content

Instantly share code, notes, and snippets.

@karlforshaw
Created February 1, 2010 17:41
Show Gist options
  • Save karlforshaw/291848 to your computer and use it in GitHub Desktop.
Save karlforshaw/291848 to your computer and use it in GitHub Desktop.
@implementation SlideLibraryThumbnailProtoype : CPView
{
SlideLibraryTabThumbnail _object;
}
- (void)setRepresentedObject:(id)theData
{
if(! _object) {
var frame = CGRectMake(
CGRectGetMinX([self bounds]),
CGRectGetMinY([self bounds]),
175,
150
);
_object = [[SlideLibraryTabThumbnail alloc]
initWithFrame:frame
withData:theData
];
[self addSubview:_object];
}
}
- (void)setSelected:(BOOL)isSelected
{
console.log('selected');
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment