Check if the NSLinguisticTagger class is available before using it (it was added in 10.7).
This commit is contained in:
1 parent
d369decee2
commit
dc227c8fbc
2 files changed
+3
-3
No files matched your search
@@ -36,7 +36,7 @@
|
|||||||
newTrack.alternate_group = 2;
|
newTrack.alternate_group = 2;
|
||||||
newTrack.language = getFilenameLanguage((CFStringRef)[_fileURL path]);
|
newTrack.language = getFilenameLanguage((CFStringRef)[_fileURL path]);
|
||||||
|
|
||||||
if ([newTrack.language isEqualToString:@"Unknown"]) {
|
if ([newTrack.language isEqualToString:@"Unknown"] && NSClassFromString(@"NSLinguisticTagger")) {
|
||||||
// we couldn't deduce language from the fileURL
|
// we couldn't deduce language from the fileURL
|
||||||
// -> Let's look into the file itself
|
// -> Let's look into the file itself
|
||||||
|
|
||||||
|
|||||||
@@ -667,7 +667,7 @@
|
|||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
||||||
ONLY_ACTIVE_ARCH = NO;
|
ONLY_ACTIVE_ARCH = NO;
|
||||||
SDKROOT = macosx10.8;
|
SDKROOT = macosx;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
@@ -683,7 +683,7 @@
|
|||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
||||||
ONLY_ACTIVE_ARCH = NO;
|
ONLY_ACTIVE_ARCH = NO;
|
||||||
SDKROOT = macosx10.8;
|
SDKROOT = macosx;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user