Fixed building with 10.9 SDK

Fixes https://github.com/libsdl-org/SDL/issues/5954
This commit is contained in:
Sam Lantinga 2022-07-24 18:04:26 -07:00
parent 3ab1e303ec
commit 4d66501736

View File

@ -117,7 +117,7 @@ LoadHiddenSystemCursor(NSString *cursorName, SEL fallback)
const int frames = (int)[[info valueForKey:@"frames"] integerValue];
NSCursor *cursor;
NSImage *image = [[NSImage alloc] initWithContentsOfFile:[cursorPath stringByAppendingPathComponent:@"cursor.pdf"]];
if ((image == nil) || (image.valid == NO)) {
if ((image == nil) || (image.isValid == NO)) {
return [NSCursor performSelector:fallback];
}