22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#import "OFInitializationFailedException.h"
int _OFString_NSObject_reference;
@implementation OFString (NSObject)
- (id)NSObject
{
NSString *string = [NSString stringWithUTF8String: [self UTF8String]];
if (string == nil)
@throw [OFInitializationFailedException
exceptionWithClass: [NSString class]];
return string;
}
@end
|
|
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#import "OFInitializationFailedException.h"
int _OFString_NSObject_reference;
@implementation OFString (NSObject)
- (id)NSObject
{
NSString *string = [NSString stringWithUTF8String: self.UTF8String];
if (string == nil)
@throw [OFInitializationFailedException
exceptionWithClass: [NSString class]];
return string;
}
@end
|