Skip to content
Browse files

rm drag support here

  • Loading branch information...
1 parent c295690 commit f9ebafe2368a22d83c4b922fa84b90e7e038b37c @mattrajca mattrajca committed Feb 25, 2013
Showing with 0 additions and 25 deletions.
  1. +0 −25 Pixen Application/Tools/Patterns/PXPatternEditorView.m
View
25 Pixen Application/Tools/Patterns/PXPatternEditorView.m
@@ -28,31 +28,6 @@ - (id)initWithCoder:(NSCoder *)aDecoder
return self;
}
-- (void)awakeFromNib
-{
- [self registerForDraggedTypes:[NSArray arrayWithObject:PXPatternPboardType]];
-}
-
-- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
-{
- return NSDragOperationCopy;
-}
-
-- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
-{
- NSPasteboard *pboard = [sender draggingPasteboard];
- [self setPattern:[NSKeyedUnarchiver unarchiveObjectWithData:[pboard dataForType:PXPatternPboardType]]];
-
- [_pattern willChangeValueForKey:@"image"];
-
- if ([_delegate respondsToSelector:@selector(patternView:changedPattern:)])
- [_delegate patternView:self changedPattern:_pattern];
-
- [_pattern didChangeValueForKey:@"image"];
-
- return YES;
-}
-
- (void)drawRect:(NSRect)rect
{
if (_pattern == nil)

0 comments on commit f9ebafe

Please sign in to comment.
Something went wrong with that request. Please try again.