PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Tools/NativeHost/NSObject+WebAdditions.m

http://github.com/cacaodev/cappuccino
Objective C | 19 lines | 7 code | 5 blank | 7 comment | 1 complexity | 9db10f5fb06058ab27f4c7523f7a2600 MD5 | raw file
 1//
 2//  NSObject+WebAdditions.m
 3//  NativeHost
 4//
 5//  Created by Francisco Tolmasky on 11/16/09.
 6//  Copyright 2009 280 North, Inc.. All rights reserved.
 7//
 8
 9#import "NSObject+WebAdditions.h"
10
11
12@implementation NSObject (WebAdditions)
13
14- (BOOL)webBoolValue
15{
16    return [self isKindOfClass:[NSNumber class]] && [(NSNumber *)self boolValue];
17}
18
19@end