Revision ce2e0bdf

b/pithos-apple-common
1
Subproject commit 32017ec6b322f0d29b987d2494e6bc655c67a73a
1
Subproject commit 7ac1bf11f8e6267e6146230f2dce93765542bf05
b/pithos-macos/PithosBrowserController.m
2237 2237
        // Refresh
2238 2238
        menuItem = [[[NSMenuItem alloc] initWithTitle:@"Refresh" action:@selector(refresh:) keyEquivalent:@""] autorelease];
2239 2239
        [menu addItem:menuItem];
2240
        [menu addItem:[NSMenuItem separatorItem]];        
2241 2240
        // Get Info
2242 2241
        if (!sharingAccount || ([firstMenuNode class] != [PithosAccountNode class])) {
2242
            [menu addItem:[NSMenuItem separatorItem]];
2243 2243
            menuItem = [[[NSMenuItem alloc] initWithTitle:@"Get Info" action:@selector(menuGetInfo:) keyEquivalent:@""] autorelease];
2244 2244
            [menuItem setRepresentedObject:menuNodes];
2245 2245
            [menu addItem:menuItem];
b/pithos-macos/PithosUtilities.m
876 876
+ (NSUInteger)bytesOfFile:(NSString *)filePath {
877 877
    NSFileManager *fileManager = [NSFileManager defaultManager];
878 878
    NSDictionary *attributes = [fileManager attributesOfItemAtPath:filePath error:nil];
879
    return [[attributes objectForKey:NSFileSize] intValue];
879
    return [[attributes objectForKey:NSFileSize] unsignedIntegerValue];
880 880
}
881 881

  
882 882
// Content type of the file or nil if it cannot be determined

Also available in: Unified diff