NSURL: create .fileURL property

Create the NSURL.fileURL property to increase compatibility with
applications that rely on this.
This commit is contained in:
Daniel Ferreira 2017-06-22 06:43:51 +10:00 committed by Ivan Vučica
parent 064df5ba69
commit 41a00e1ad3

View file

@ -171,6 +171,12 @@ enum
- (id) initWithString: (NSString*)aUrlString
relativeToURL: (NSURL*)aBaseUrl;
#if GS_HAS_DECLARED_PROPERTIES
@property (readonly, getter=isFileURL) BOOL fileURL;
#else
- (BOOL) isFileURL;
#endif
/**
* Returns the full string describing the receiver resolved against its base.
*/
@ -214,11 +220,6 @@ enum
*/
- (NSString*) host;
/**
* Returns YES if the receiver is a file URL, NO otherwise.
*/
- (BOOL) isFileURL;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6,GS_API_LATEST)
/** Returns the last (rightmost) path component of the receiver.
*/