Skip to content

Commit c128b85

Browse files
committed
Added missing prefix
1 parent 5892426 commit c128b85

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Sources/ITKSuperBuilder/include/ITKSuperBuilder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ There are a few important details:
6363
NSString *const ITKSuperBuilderErrorDomain;
6464

6565
typedef NS_ERROR_ENUM(ITKSuperBuilderErrorDomain, ITKSuperBuilderErrorCode) {
66-
SuperBuilderErrorCodeNoSuperClass,
67-
SuperBuilderErrorCodeNoDynamicallyDispatchedMethodAvailable,
68-
SuperBuilderErrorCodeFailedToAddMethod
66+
ITKSuperBuilderErrorCodeNoSuperClass,
67+
ITKSuperBuilderErrorCodeNoDynamicallyDispatchedMethodAvailable,
68+
ITKSuperBuilderErrorCodeFailedToAddMethod
6969
};
7070

7171
NS_ASSUME_NONNULL_END

Sources/ITKSuperBuilder/src/ITKSuperBuilder.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ + (BOOL)addSuperInstanceMethodToClass:(Class)originalClass
2626
if (error) {
2727
let message = [NSString stringWithFormat:@"Unable to find superclass for %@", NSStringFromClass(originalClass)];
2828
*error = [NSError errorWithDomain:ITKSuperBuilderErrorDomain
29-
code:SuperBuilderErrorCodeNoSuperClass
29+
code:ITKSuperBuilderErrorCodeNoSuperClass
3030
userInfo:@{NSLocalizedDescriptionKey: message}];
3131
return NO;
3232
}
@@ -38,7 +38,7 @@ + (BOOL)addSuperInstanceMethodToClass:(Class)originalClass
3838
if (error) {
3939
let message = [NSString stringWithFormat:@"No dynamically dispatched method with selector %@ is available on any of the superclasses of %@", NSStringFromSelector(selector), NSStringFromClass(originalClass)];
4040
*error = [NSError errorWithDomain:ITKSuperBuilderErrorDomain
41-
code:SuperBuilderErrorCodeNoDynamicallyDispatchedMethodAvailable
41+
code:ITKSuperBuilderErrorCodeNoDynamicallyDispatchedMethodAvailable
4242
userInfo:@{NSLocalizedDescriptionKey: message}];
4343
return NO;
4444
}
@@ -52,7 +52,7 @@ + (BOOL)addSuperInstanceMethodToClass:(Class)originalClass
5252
if (error) {
5353
let message = [NSString stringWithFormat:@"Failed to add method for selector %@ to class %@", NSStringFromSelector(selector), NSStringFromClass(originalClass)];
5454
*error = [NSError errorWithDomain:ITKSuperBuilderErrorDomain
55-
code:SuperBuilderErrorCodeFailedToAddMethod
55+
code:ITKSuperBuilderErrorCodeFailedToAddMethod
5656
userInfo:@{NSLocalizedDescriptionKey: message}];
5757
return NO;
5858
}
@@ -127,7 +127,7 @@ static BOOL ITKMethodIsSuperTrampoline(Method method) {
127127
Assume you have a class hierarchy made of four classes `Level1` <- `Level2` <- `Level3` <- `Level4`,
128128
with `Level1` implementing a method called `-sayHello`, not implemented elsewhere in descendants classes.
129129
130-
If you use: `[SuperBuilder addSuperInstanceMethodToClass:Level2.class selector:@selector(sayHello) error:NULL];`
130+
If you use: `[ITKSuperBuilder addSuperInstanceMethodToClass:Level2.class selector:@selector(sayHello) error:NULL];`
131131
to inject a _dummy_ implementation at `Level2`, the following will happen:
132132
133133
- Calling `-[Level2 sayHello]` works. The trampoline is called, the `super_class ` is found to be `Level1`, and the `-sayHello` parent implementation is called.

0 commit comments

Comments
 (0)