Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (19 sloc) 0.701 kb
//
// 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@example.com (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;
@end
Jump to Line
Something went wrong with that request. Please try again.