Skip to content

Commit

Permalink
MulticastDelegate support the type of SEL
Browse files Browse the repository at this point in the history
  • Loading branch information
iMAC_HYH committed Sep 11, 2017
1 parent 75728a4 commit d2f4cf8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Utilities/GCDMulticastDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,12 @@ - (NSInvocation *)duplicateInvocation:(NSInvocation *)origInvocation
[origInvocation getArgument:&value atIndex:i];
[dupInvocation setArgument:&value atIndex:i];
}
else if (*type == ':')
{
void *value;
[origInvocation getArgument:&value atIndex:i];
[dupInvocation setArgument:&value atIndex:i];
}
else if (*type == '^')
{
void *block;
Expand Down

1 comment on commit d2f4cf8

@ienho
Copy link

@ienho ienho commented on d2f4cf8 Sep 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the method GCDMulticastDelegate.duplicateInvocation does not support type SEL, so im submit this changes;
and I hava a question , why the duplicateInvocation method care about the type of arguments

Please sign in to comment.