Re: Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
Re: Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
- Subject: Re: Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 15 Jan 2010 12:10:33 +0100
Le 15 janv. 2010 à 11:56, Matt Gough a écrit :
> 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.
Yes, the whole new Colorsync API misses the availability macros, and so does not generate weak symbol and prevent application that use them to start on older OS (radar 7270501).
Ditto for some IOSurface functions. (radar 7279010)
-- Jean-Daniel
_______________________________________________
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