aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSDictionary+URLArguments.h
diff options
context:
space:
mode:
authorGravatar dmaclach <dmaclach@gmail.com>2018-11-13 12:46:39 -0800
committerGravatar GitHub <noreply@github.com>2018-11-13 12:46:39 -0800
commit85341176f85a73b94c1d785126d9e17c628287a3 (patch)
tree1f73695b32a212019e8ca38fa06cb5175f119a41 /Foundation/GTMNSDictionary+URLArguments.h
parenta72981b4f4156d7ae5f184e4a7155b6817f0fda3 (diff)
Add deprecation warnings on URLArgument categories. (#198)
The URLArgument categories should be replaced with usages of NSURLComponents and NSURLItems.
Diffstat (limited to 'Foundation/GTMNSDictionary+URLArguments.h')
-rw-r--r--Foundation/GTMNSDictionary+URLArguments.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Foundation/GTMNSDictionary+URLArguments.h b/Foundation/GTMNSDictionary+URLArguments.h
index 734edea..285a82c 100644
--- a/Foundation/GTMNSDictionary+URLArguments.h
+++ b/Foundation/GTMNSDictionary+URLArguments.h
@@ -29,12 +29,12 @@
/// NOTE: Apps targeting iOS 8 or OS X 10.10 and later should use
/// NSURLComponents and NSURLQueryItem to create URLs with
/// query arguments instead of using these category methods.
-+ (NSDictionary *)gtm_dictionaryWithHttpArgumentsString:(NSString *)argString;
++ (NSDictionary *)gtm_dictionaryWithHttpArgumentsString:(NSString *)argString NS_DEPRECATED(10_0, 10_10, 2_0, 8_0, "Use NSURLComponents and NSURLQueryItem.");
/// Gets a string representation of the dictionary in the form
/// key1=value1&key2=value2&...&keyN=valueN, suitable for use as either
/// URL arguments (after a '?') or POST body. Keys and values will be escaped
/// automatically, so should be unescaped in the dictionary.
-- (NSString *)gtm_httpArgumentsString;
+- (NSString *)gtm_httpArgumentsString NS_DEPRECATED(10_0, 10_10, 2_0, 8_0, "Use NSURLComponents and NSURLQueryItem.");
@end