CPImageView should send action on drop, as in Cocoa

This commit is contained in:
Scott Kyle
2010-03-22 16:15:02 -07:00
committed by Ross Boucher
parent ef4c108b9e
commit bb0835e2f3
+3
View File
@@ -370,7 +370,10 @@ var LEFT_SHADOW_INSET = 3.0,
var images = [CPKeyedUnarchiver unarchiveObjectWithData:[[aSender draggingPasteboard] dataForType:CPImagesPboardType]];
if ([images count])
{
[self setImage:images[0]];
[self sendAction:[self action] to:[self target]];
}
}
@end