Skip to content

Commit

Permalink
fixed yet another crash on 10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
IngmarStein committed Sep 26, 2012
1 parent 74659e6 commit 206c7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Monolingual/MyResponder.m
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ - (void) progressDidEnd:(NSWindow *)panel returnCode:(int)returnCode contextInfo

NSString *byteCount;
char hbuf[LONGEST_HUMAN_READABLE + 1];
if ([NSByteCountFormatter class]) {
if ([NSByteCountFormatter class] && [[NSByteCountFormatter class] respondsToSelector:@selector(stringFromByteCount:countStyle:)]) {
byteCount = [NSByteCountFormatter stringFromByteCount:bytesSaved countStyle:NSByteCountFormatterCountStyleFile];
} else {
byteCount = @(human_readable(bytesSaved, hbuf, 1000));
Expand Down

0 comments on commit 206c7ad

Please sign in to comment.