Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

random minor cleanup

  • Loading branch information...
commit 9ca894fe76654039637f2742f3594d061e023b5b 1 parent 126c946
@cdzombak authored
View
1  buyvmmanager/BVMAboutSettingsViewController.h
@@ -3,6 +3,7 @@
@interface BVMAboutSettingsViewController : UITableViewController <CDZViewControllerModalDismissal>
+// Designated initializer
- (id)init;
@end
View
16 buyvmmanager/NSArray+BVMArrayExtensions.m
@@ -9,15 +9,15 @@ - (id)bvm_firstObject
- (NSUInteger)bvm_indexOfString:(NSString *)searchString
{
- NSUInteger index = NSNotFound;
- for (NSUInteger i=0; i<self.count; ++i) {
- NSString *string = self[i];
- if ([string isEqualToString:searchString]) {
- index = i;
- break;
+ return [self indexOfObjectPassingTest:^BOOL(id obj, NSUInteger idx, BOOL *stop) {
+ if ([obj isEqualToString:searchString]) {
+ stop = YES;
+ return YES;
}
- }
- return index;
+ return NO;
+ }];
}
+
+
@end
Please sign in to comment.
Something went wrong with that request. Please try again.