FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSURL.h
Go to the documentation of this file.
1 //
2 // NSURL.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 10. 10. 17..
6 // Copyright 2010 youknowone.org All rights reserved.
7 //
8 
19 
27 - (instancetype)initResourceURLWithPath:(NSString *)path;
28 
34 - (instancetype)initConfigurationURLWithPath:(NSString *)path;
35 
41 - (instancetype)initTemporaryURLWithPath:(NSString *)path;
42 
50 - (instancetype)initSmartURLWithPath:(NSString *)path;
51 
58 + (instancetype)resourceURLWithPath:(NSString *)path;
59 
64 + (instancetype)configurationURLWithPath:(NSString *)path;
65 
70 + (instancetype)temporaryURLWithPath:(NSString *)path;
71 
76 + (instancetype)smartURLWithPath:(NSString *)path;
77 
80 - (id)initWithAbstractPath:(NSString *)path __deprecated;
83 - (id)initWithAbstractFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2) __deprecated;
85 - (id)initWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2) __deprecated;
87 - (id)initFileURLWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2) __deprecated;
88 
90 + (NSURL *)URLWithAbstractPath:(NSString *)path __deprecated;
92 + (NSURL *)URLWithAbstractFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2) __deprecated;
94 + (NSURL *)URLWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2) __deprecated;
96 + (NSURL *)fileURLWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2) __deprecated;
97 
98 @end
99 
103 @interface NSURL (CFURL)
104 
109 @property(nonatomic, readonly) BOOL hasDirectoryPath;
110 
111 @end
112 
113 
118 
126 - (NSString *)stringByAddingPercentEncodingWithoutAllowedCharacters;
127 
133 - (NSString *)stringByAddingPercentEncodingForURLQuery;
134 
143 - (BOOL)hasHTTPPrefix;
150 - (BOOL)hasSmartURLPrefix;
151 
155 - (NSString *)URLProtocol;
156 
164 - (NSURL *)URL;
165 
171 - (NSURL *)fileURL;
172 
177 - (NSURL *)resourceURL;
178 
183 - (NSURL *)configurationURL;
184 
189 - (NSURL *)temporaryURL;
190 
195 - (NSURL *)smartURL;
196 
197 
200 - (NSURL *)abstractURL __deprecated;
202 
204 - (BOOL)hasURLPrefix __deprecated;
205 
207 - (NSString *)pathProtocol;
208 
209 @end
210 
211 
213 
220 - (NSString *)stringByAddingPercentEscapesUsingUTF8Encoding
221 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 || __IPHONE_OS_VERSION_MAX_ALLOWED >= 90000
222 NS_DEPRECATED(10_0, 10_11, 2_0, 9_0, "Use -stringByAddingPercentEscapesUsingEncoding:")
223 #endif
224 ;
231 - (NSString *)stringByReplacingPercentEscapesUsingUTF8Encoding
232 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 || __IPHONE_OS_VERSION_MAX_ALLOWED >= 90000
233 NS_DEPRECATED(10_0, 10_11, 2_0, 9_0, "Use -stringByRemovingPercentEncoding:")
234 #endif
235 ;
236 
237 @end
238 
239 
245 
247 - (id)initWithContentsOfAbstractPath:(NSString *)path __deprecated;
249 + (NSData *)dataWithContentsOfAbstractPath:(NSString *)path __deprecated;
250 
252 - (id)initWithContentsOfAbstractPath:(NSString *)path options:(NSDataReadingOptions)opt error:(NSError **)error __deprecated;
254 + (NSData *)dataWithContentsOfAbstractPath:(NSString *)path options:(NSDataReadingOptions)opt error:(NSError **)error __deprecated;
255 
256 @end
Definition: NSURL.h:212
NSData creation shortcuts from URL.
Definition: NSURL.h:244
BOOL hasDirectoryPath
The URL status if a given URL's path represents a directory.
Definition: NSURL.h:109
Creation method extension.
Definition: NSURL.h:18
NSURL missing bridge of CFURL.
Definition: NSURL.h:103
NSString shortcut to detect URL and to create an NSURL.
Definition: NSURL.h:117