CPImageView should send action on drop, as in Cocoa

This commit is contained in:
Scott Kyle authored and Ross Boucher committed 2010-03-22 16:15:02 -07:00
1 parent ef4c108b9e
commit bb0835e2f3
1 file changed
+3
+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