Base64.h
author Jens Alfke <jens@mooseyard.com>
Wed Sep 02 08:41:25 2009 -0700 (2009-09-02)
changeset 35 5cab3034d3a1
parent 0 d84d25d6cdbb
permissions -rw-r--r--
10.6 compatibility: Fix some new compiler warnings, and work around apparent regressions in NSTask and -stringByStandardizingPath.
     1 //
     2 //  Base64.h
     3 //  MYUtilities
     4 //
     5 //  Created by Jens Alfke on 1/27/08.
     6 //  Copyright 2008 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Cocoa/Cocoa.h>
    10 
    11 
    12 //NOTE: Using this requires linking against /usr/lib/libcrypto.dylib.
    13 
    14 
    15 @interface NSData (MYBase64)
    16 
    17 - (NSString *)my_base64String;
    18 - (NSString *)my_base64StringWithNewlines:(BOOL)encodeWithNewlines;
    19 
    20 - (NSData *)my_decodeBase64;
    21 - (NSData *)my_decodeBase64WithNewLines:(BOOL)encodedWithNewlines;
    22 
    23 - (NSString *)my_hexString;
    24 - (NSString *)my_hexDump;
    25 
    26 @end