diff --git a/BFKitDemo/BFKitDemo/BFKitDemo-Info.plist b/BFKitDemo/BFKitDemo/BFKitDemo-Info.plist index 009fc27..ec96f56 100644 --- a/BFKitDemo/BFKitDemo/BFKitDemo-Info.plist +++ b/BFKitDemo/BFKitDemo/BFKitDemo-Info.plist @@ -25,7 +25,7 @@ CFBundleSignature ???? CFBundleVersion - 732 + 736 LSRequiresIPhoneOS UIRequiredDeviceCapabilities diff --git a/BFKitDemo/BFKitDemo/DetailViewController.m b/BFKitDemo/BFKitDemo/DetailViewController.m index 8ebb87a..a7e64f0 100644 --- a/BFKitDemo/BFKitDemo/DetailViewController.m +++ b/BFKitDemo/BFKitDemo/DetailViewController.m @@ -732,8 +732,8 @@ - (void)prepareForDetail:(DetailType)detailType { NSObject *nilObject = nil; NSObject *object = @"Object"; - BFLog([nilObject isValid] ? @"Object is valid" : @"Object is not valid"); - BFLog([object isValid] ? @"Object is valid" : @"Object is not valid"); + BFLog([nilObject isObjectValid] ? @"Object is valid" : @"Object is not valid"); + BFLog([object isObjectValid] ? @"Object is valid" : @"Object is not valid"); [self performSelector:@selector(multiArgumentsSelectorWithString:string:string:string:) withObjects:@"String 1", @"String 2", @"String 3", @"String 4", nil]; diff --git a/Source/Additions/Foundation/NSObject+BFKit.h b/Source/Additions/Foundation/NSObject+BFKit.h index 09b7f35..8f4c30a 100644 --- a/Source/Additions/Foundation/NSObject+BFKit.h +++ b/Source/Additions/Foundation/NSObject+BFKit.h @@ -37,7 +37,7 @@ * * @return Returns if the object is valid */ -- (BOOL)isValid; +- (BOOL)isObjectValid; /** * Perform selector with unlimited objects diff --git a/Source/Additions/Foundation/NSObject+BFKit.m b/Source/Additions/Foundation/NSObject+BFKit.m index 0d1a26b..a89ad97 100644 --- a/Source/Additions/Foundation/NSObject+BFKit.m +++ b/Source/Additions/Foundation/NSObject+BFKit.m @@ -28,7 +28,7 @@ @implementation NSObject (BFKit) -- (BOOL)isValid { +- (BOOL)isObjectValid { return !(self == nil || [self isKindOfClass:[NSNull class]]); }