Skip to content

Commit

Permalink
removed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
swissquote-nst committed Nov 19, 2013
1 parent eaa0d36 commit 5f8ec1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions OSX/AppController.m
Expand Up @@ -118,7 +118,7 @@ - (void)loadBundlesURLs:(NSArray *)bundlesURLs {

RBBrowserViewType viewType = [[NSUserDefaults standardUserDefaults] integerForKey:@"ViewType"];
if(viewType == RBBrowserViewTypeImages) {
NSString *rootTitle = [NSString stringWithFormat:@"%d images", [[allClasses allClassStubsByImagePath] count]];
NSString *rootTitle = [NSString stringWithFormat:@"%lu images", (unsigned long)[[allClasses allClassStubsByImagePath] count]];
[classBrowser setTitle:rootTitle ofColumn:0];
}
}
Expand Down Expand Up @@ -252,7 +252,7 @@ - (IBAction)saveAllAction:(id)sender {

[classNames release];

NSString *message = [NSString stringWithFormat:@"Done saving all classes into %@. \n %d classes saved. \n %d classes failed to save.", [dirURL path], saved, failed];
NSString *message = [NSString stringWithFormat:@"Done saving all classes into %@. \n %lu classes saved. \n %d classes failed to save.", [dirURL path], (unsigned long)saved, failed];

[[NSOperationQueue mainQueue] addOperationWithBlock:^{
NSRunInformationalAlertPanel(@"Save All Finished", message, @"OK", nil, nil);
Expand Down Expand Up @@ -297,15 +297,15 @@ - (void)changeViewTypeTo:(RBBrowserViewType)viewType {

NSString *rootTitle = @"";
if(viewType == RBBrowserViewTypeList) {
rootTitle = [NSString stringWithFormat:@"%d classes", [[rootItem children] count]];
rootTitle = [NSString stringWithFormat:@"%lu classes", (unsigned long)[[rootItem children] count]];

if([self isInSearchMode]) {
rootTitle = @"No classes found";
}
}

if(viewType == RBBrowserViewTypeTree) rootTitle = [NSString stringWithFormat:@"%d Root Classes", [[rootItem children] count]];
if(viewType == RBBrowserViewTypeImages) rootTitle = [NSString stringWithFormat:@"%d Images", [[rootItem children] count]];
if(viewType == RBBrowserViewTypeTree) rootTitle = [NSString stringWithFormat:@"%lu Root Classes", (unsigned long)[[rootItem children] count]];
if(viewType == RBBrowserViewTypeImages) rootTitle = [NSString stringWithFormat:@"%lu Images", (unsigned long)[[rootItem children] count]];

[label setStringValue:@""];
[headerTextView setString:@""];
Expand Down Expand Up @@ -386,7 +386,7 @@ - (IBAction)search:(id)sender {

searchResultsNode.children = searchResults;

NSString *rootTitle = [NSString stringWithFormat:@"\"%@\": %d classes, searching...", searchString, [searchResults count]];
NSString *rootTitle = [NSString stringWithFormat:@"\"%@\": %lu classes, searching...", searchString, (unsigned long)[searchResults count]];
[classBrowser setTitle:rootTitle ofColumn:0];

[classBrowser loadColumnZero];
Expand All @@ -404,9 +404,9 @@ - (IBAction)search:(id)sender {
return;
}

NSLog(@"-- finished searching for %@, %ul results", searchString, [searchResults count]);
NSLog(@"-- finished searching for %@, %lul results", searchString, (unsigned long)[searchResults count]);

NSString *rootTitle = [NSString stringWithFormat:@"\"%@\": %d classes", searchString, [searchResults count]];
NSString *rootTitle = [NSString stringWithFormat:@"\"%@\": %lu classes", searchString, (unsigned long)[searchResults count]];
[classBrowser setTitle:rootTitle ofColumn:0];

}];
Expand Down
2 changes: 1 addition & 1 deletion OSX/BrowserNode.m
Expand Up @@ -72,7 +72,7 @@ - (NSComparisonResult)compare:(BrowserNode *)otherNode {

- (NSString *)nodeInfo {
NSArray *pathComponents = [nodeName componentsSeparatedByString:@"/"];
return [NSString stringWithFormat:@"%@ (%d)", [pathComponents lastObject], [children count]];
return [NSString stringWithFormat:@"%@ (%lu)", [pathComponents lastObject], (unsigned long)[children count]];
}

- (void)dealloc {
Expand Down
2 changes: 1 addition & 1 deletion model/ClassStub.m
Expand Up @@ -284,7 +284,7 @@ - (NSString *)nodeName {
}

- (NSString *)nodeInfo {
return [NSString stringWithFormat:@"%@ (%d)", [self nodeName], [[self children] count]];
return [NSString stringWithFormat:@"%@ (%lu)", [self nodeName], (unsigned long)[[self children] count]];
}

- (BOOL)canBeSavedAsHeader {
Expand Down

0 comments on commit 5f8ec1e

Please sign in to comment.