-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge new API by Danny Greg, other fixes
Add GITIGNORE for AppCode and internal Xcode project files Add CFobError class, use standard Cocoa error handling pattern Update copyright years, Twitter handle Use BSD license Support GC Fix OpenSSL initialisation conflicts
- Loading branch information
Showing
13 changed files
with
576 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build | ||
*.mode2v3 | ||
*.mode* | ||
*.pbxuser | ||
*.perspectivev3 | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// CFobError.h | ||
// cocoafob | ||
// | ||
// Created by Danny Greg on 24/08/2010. | ||
// Copyright 2010 Realmac Software. All rights reserved. | ||
// Licensed under CC Attribution Licence 3.0 <http://creativecommons.org/licenses/by/3.0/> | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
enum _CFobErrorCode { | ||
CFobErrorCodeInvalidKey = -1, | ||
CFobErrorCodeCouldNotDecode = -2, | ||
CFobErrorCodeSigningFailed = -3, | ||
CFobErrorCodeCouldNotEncode = -4, | ||
CFobErrorCodeNoName = -5, | ||
}; | ||
|
||
void CFobAssignErrorWithDescriptionAndCode(NSError **err, NSString *description, NSInteger code); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// CFobError.h | ||
// cocoafob | ||
// | ||
// Created by Danny Greg on 24/08/2010. | ||
// Copyright 2010 Realmac Software. All rights reserved. | ||
// Licensed under CC Attribution Licence 3.0 <http://creativecommons.org/licenses/by/3.0/> | ||
// | ||
|
||
#import "CFobError.h" | ||
|
||
#import "CFobLicVerifier.h" | ||
|
||
void CFobAssignErrorWithDescriptionAndCode(NSError **err, NSString *description, NSInteger code) | ||
{ | ||
if (err != NULL) | ||
*err = [NSError errorWithDomain:[[NSBundle bundleForClass:[CFobLicVerifier class]] bundleIdentifier] code:code userInfo:[NSDictionary dictionaryWithObject:NSLocalizedStringFromTableInBundle(description, nil, [NSBundle bundleForClass:[CFobLicVerifier class]], nil) forKey:NSLocalizedDescriptionKey]]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.