Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
- Subject: Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
- From: Matt Gough <email@hidden>
- Date: Fri, 15 Jan 2010 10:56:32 +0000
According to NSURL.h in the MacOSX10.5.SDK:
- initFileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
+ (id)fileURLWithPath:(NSString *)path isDirectory:(BOOL) isDir AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
Whereas NSURL.h in the MacOSX10.6.SDK (and documentation) correctly says that they are available in 10.5 and later.
As such, anyone building with the 10.5 SDK and supporting 10.4 or later will be able to call these methods without the compiler generating any warnings and when run on 10.4 an 'Unrecognized selector' exception will be thrown.
I have logged a radar request to fix this (7545559), but was wondering if there are any other known cases where the SDKs have the wrong availability listed for something.
Matt Gough _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden