Skip to content

Commit

Permalink
Merge pull request escoz#676 from derheld/64-bit-objc_msgSend
Browse files Browse the repository at this point in the history
On 64 bit you must cast the objc_msgSend function to a prototype that ma...
  • Loading branch information
escoz committed May 17, 2014
2 parents ace0d42 + de3ce68 commit c5891e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quickdialog/QElement.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ - (void)selectedAccessory:(QuickDialogTableView *)tableView controller:(QuickDi
if (self.controllerAccessoryAction!=NULL){
SEL selector = NSSelectorFromString(self.controllerAccessoryAction);
if ([controller respondsToSelector:selector]) {
objc_msgSend(controller,selector, self);
((void (*)(id, SEL, id)) objc_msgSend)(controller, selector, self);
} else {
NSLog(@"No method '%@' was found on controller %@", self.controllerAccessoryAction, [controller class]);
}
Expand Down Expand Up @@ -144,7 +144,7 @@ - (void)performAction
if (self.controllerAction!=NULL){
SEL selector = NSSelectorFromString(self.controllerAction);
if ([_controller respondsToSelector:selector]) {
objc_msgSend(_controller,selector, self);
((void (*)(id, SEL, id)) objc_msgSend)(_controller, selector, self);
} else {
NSLog(@"No method '%@' was found on controller %@", self.controllerAction, [_controller class]);
}
Expand All @@ -155,7 +155,7 @@ -(void)performAccessoryAction{
if (_controller!=nil && self.controllerAccessoryAction!=nil) {
SEL selector = NSSelectorFromString(self.controllerAccessoryAction);
if ([_controller respondsToSelector:selector]) {
objc_msgSend(_controller,selector, self);
((void (*)(id, SEL, id)) objc_msgSend)(_controller, selector, self);
} else {
NSLog(@"No method '%@' was found on controller %@", self.controllerAccessoryAction, [_controller class]);
}
Expand Down

0 comments on commit c5891e6

Please sign in to comment.