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

43 lines (30 sloc) 0.894 kb
//
// DTImage+HTML.h
// CoreTextExtensions
//
// Created by Oliver Drobnik on 1/9/11.
// Copyright 2011 Drobnik.com. All rights reserved.
//
#if TARGET_OS_IPHONE
/**
Category used to have the same method available for unit testing on Mac on iOS.
*/
@interface UIImage (HTML)
/**
Retrieve the NSData representation of a UIImage. Used to encode UIImages in DTTextAttachments.
@returns The NSData representation of the UIImage instance receiving this message. Convenience method for UIImagePNGRepresentation().
*/
- (NSData *)dataForPNGRepresentation;
@end
#else
/**
Category used to have the same method available for unit testing on Mac on iOS.
*/
@interface NSImage (HTML)
/**
Retrieve the NSData representation of a NSImage.
@returns The NSData representation of the NSImage instance receiving this message.
*/
- (NSData *)dataForPNGRepresentation;
@end
#endif
Jump to Line
Something went wrong with that request. Please try again.