Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created September 29, 2008 04:09
Show Gist options
  • Save tolmasky/13552 to your computer and use it in GitHub Desktop.
Save tolmasky/13552 to your computer and use it in GitHub Desktop.
@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