aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index b79355b5..ba16da73 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -47,12 +47,6 @@ typedef enum {
HexSegment
} FieldEditorSegment;
-@interface SPFieldEditorController (SPFieldEditorControllerDelegate)
-
-- (void)processFieldEditorResult:(id)data contextInfo:(NSDictionary*)contextInfo;
-
-@end
-
@implementation SPFieldEditorController
@synthesize editedFieldInfo;
@@ -672,7 +666,9 @@ typedef enum {
else if ( [callerInstance isKindOfClass:[SPTableContent class]] )
[(SPTableContent*)callerInstance processFieldEditorResult:returnData contextInfo:contextInfo];
#else
- [callerInstance processFieldEditorResult:returnData contextInfo:contextInfo];
+ if([callerInstance respondsToSelector:@selector(processFieldEditorResult:contextInfo:)]) {
+ [(id <SPFieldEditorControllerDelegate>)callerInstance processFieldEditorResult:returnData contextInfo:contextInfo];
+ }
#endif
}
}