Skip to content

Commit

Permalink
Add NSCopying conformance to XExtensionItemParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
irace committed Dec 10, 2014
1 parent 6c364ce commit 17ba08e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion XExtensionItem/XExtensionItemParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
```
*/
@interface XExtensionItemParameters : NSObject <NSMutableCopying>
@interface XExtensionItemParameters : NSObject <NSCopying, NSMutableCopying>

/**
An optional title for the item.
Expand Down
6 changes: 6 additions & 0 deletions XExtensionItem/XExtensionItemParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ - (NSString *)description {
return [mutableDescription copy];
}

#pragma mark - NSCopying

- (id)copy {
return self;
}

#pragma mark - NSMutableCopying

- (id)mutableCopyWithZone:(NSZone *)zone {
Expand Down

0 comments on commit 17ba08e

Please sign in to comment.