Skip to content

Commit

Permalink
Refer to protocols with @protocol
Browse files Browse the repository at this point in the history
Fixes #114
  • Loading branch information
JonasGessner committed Feb 13, 2015
1 parent 40e2987 commit e558d2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/lib/Logos/Generator/MobileSubstrate/Subclass.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sub initializers {
}
# </ivars>
foreach(keys %{$class->protocols}) {
$return .= "class_addProtocol(".$self->variable($class).", objc_getProtocol(\"$_\")); ";
$return .= "class_addProtocol(".$self->variable($class).", \@protocol($_)); ";
}
$return .= "objc_registerClassPair(".$self->variable($class)."); ";
$return .= "}";
Expand Down
2 changes: 1 addition & 1 deletion bin/lib/Logos/Generator/internal/Subclass.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sub initializers {
}
# </ivars>
foreach(keys %{$class->protocols}) {
$return .= "class_addProtocol(".$self->variable($class).", objc_getProtocol(\"$_\")); ";
$return .= "class_addProtocol(".$self->variable($class).", \@protocol($_)); ";
}
$return .= "objc_registerClassPair(".$self->variable($class)."); ";
$return .= "}";
Expand Down

0 comments on commit e558d2d

Please sign in to comment.