Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: drawing-utils
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 32 lines (23 sloc) 0.673 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
//
// NSURL+SSToolkitAdditions.m
// SSToolkit
//
// Created by Sam Soffes on 4/27/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
//

#import "NSURL+SSToolkitAdditions.h"
#import "NSDictionary+SSToolkitAdditions.h"

@implementation NSURL (SSToolkitAdditions)

+ (id)URLWithFormat:(NSString *)format, ... {
va_list arguments;
    va_start(arguments, format);
NSString *string = [[NSString alloc] initWithFormat:format arguments:arguments];
va_end(arguments);

NSURL *url = [NSURL URLWithString:string];
[string release];

return url;
}


- (NSDictionary *)queryDictionary {
return [NSDictionary dictionaryWithFormEncodedString:self.query];
}

@end
Something went wrong with that request. Please try again.