aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMImageView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMImageView.m')
-rw-r--r--Source/CMImageView.m21
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/CMImageView.m b/Source/CMImageView.m
index 44e9e186..505921f7 100644
--- a/Source/CMImageView.m
+++ b/Source/CMImageView.m
@@ -104,4 +104,25 @@
return NO;
}
+- (void)paste:(id)sender
+{
+
+ // [super paste:sender];
+ id delegateForUse = nil;
+
+ // If the delegate or the delegate's content instance doesn't implement processUpdatedImageData:,
+ // return the super's implementation
+ if (delegate) {
+ if ([delegate respondsToSelector:@selector(processUpdatedImageData:)]) {
+ delegateForUse = delegate;
+ } else if ( [delegate valueForKey:@"tableContentInstance"]
+ && [[delegate valueForKey:@"tableContentInstance"] respondsToSelector:@selector(processUpdatedImageData:)] ) {
+ delegateForUse = [delegate valueForKey:@"tableContentInstance"];
+ }
+ }
+ if (delegateForUse)
+ [delegateForUse processPasteImageData];
+
+}
+
@end \ No newline at end of file