Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopting modern Objective C ( add NS_DESIGNATED_INITIALIZER macro). #79

Merged
merged 1 commit into from
Dec 16, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OHHTTPStubs/Sources/OHHTTPStubsResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ OHHTTPStubsDownloadSpeedWifi;
-(instancetype)initWithInputStream:(NSInputStream*)inputStream
dataSize:(unsigned long long)dataSize
statusCode:(int)statusCode
headers:(NSDictionary*)httpHeaders;
headers:(NSDictionary*)httpHeaders NS_DESIGNATED_INITIALIZER;


/*! Initialize a response with a given file path, statusCode and headers.
Expand Down Expand Up @@ -214,6 +214,6 @@ OHHTTPStubsDownloadSpeedWifi;
@return An `OHHTTPStubsResponse` describing the corresponding response to return by the stub
@note For example you could use an error like `[NSError errorWithDomain:NSURLErrorDomain code:kCFURLErrorNotConnectedToInternet userInfo:nil]`
*/
-(instancetype)initWithError:(NSError*)error;
-(instancetype)initWithError:(NSError*)error NS_DESIGNATED_INITIALIZER;

@end