• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Developing for 10.4 and up
  • Next by Date: Re: Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
  • Previous by thread: Re: Developing for 10.4 and up
  • Next by thread: Re: Mac OS X 10.5 SDK has wrong availability for [NSURL fileURLWithPath:isDirectory]
  • Index(es):
    • Date
    • Thread