Skip to content

Commit

Permalink
Renaming isValid to isObjectValid to avoid conflicts with other l…
Browse files Browse the repository at this point in the history
…ibraries
  • Loading branch information
FabrizioBrancati committed Oct 15, 2019
1 parent 71fdb99 commit d8bf082
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BFKitDemo/BFKitDemo/BFKitDemo-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>732</string>
<string>736</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
4 changes: 2 additions & 2 deletions BFKitDemo/BFKitDemo/DetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
2 changes: 1 addition & 1 deletion Source/Additions/Foundation/NSObject+BFKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*
* @return Returns if the object is valid
*/
- (BOOL)isValid;
- (BOOL)isObjectValid;

/**
* Perform selector with unlimited objects
Expand Down
2 changes: 1 addition & 1 deletion Source/Additions/Foundation/NSObject+BFKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@implementation NSObject (BFKit)

- (BOOL)isValid {
- (BOOL)isObjectValid {
return !(self == nil || [self isKindOfClass:[NSNull class]]);
}

Expand Down

0 comments on commit d8bf082

Please sign in to comment.