Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created Sep 29, 2008
Embed
What would you like to do?
@implementation TheCell : CPView
{
id myRepresentedObject
}
- (void)mouseDragged:(CPEvent)anEvent
{
var dragView = [[TheCell alloc] initWithFrame:[self bounds]];
[dragView setRepresentedObject:myRepresentedObject];
[self dragView:dragView ... etc. ...];
}
//...
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment