From 85341176f85a73b94c1d785126d9e17c628287a3 Mon Sep 17 00:00:00 2001 From: dmaclach Date: Tue, 13 Nov 2018 12:46:39 -0800 Subject: Add deprecation warnings on URLArgument categories. (#198) The URLArgument categories should be replaced with usages of NSURLComponents and NSURLItems. --- Foundation/GTMNSDictionary+URLArguments.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Foundation/GTMNSDictionary+URLArguments.h') 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 -- cgit v1.2.3