Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (19 sloc) 701 Bytes
// KSMailToURLs.h
// Sandvox
// Created by Mike on 26/07/2012.
// Copyright (c) 2012 Karelia Software. All rights reserved.
#import <Foundation/Foundation.h>
extern NSString *KSURLMailtoScheme;
extern NSString *KSURLMailtoHeaderSubject;
extern NSString *KSURLMailtoHeaderBody;
@interface NSURL (KSMailToURLs)
// Handles plain addresses, plus: (Foo)
// May return nil if the address isn't valid
// KSURLMailtoHeaderSubject is a common key for the header lines dictionary
+ (NSURL *)ks_mailtoURLWithEmailAddress:(NSString *)address headerLines:(NSDictionary *)headers;
// Nil if its not a mailto URL or has no header lines
- (NSDictionary *)ks_mailHeaderLines;
Jump to Line
Something went wrong with that request. Please try again.