mirror of
https://github.com/glebd/cocoafob.git
synced 2026-05-31 15:07:35 +00:00
19 lines
703 B
Objective-C
19 lines
703 B
Objective-C
//
|
|
// 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]];
|
|
}
|