Permalink
Browse files

Updated docs

  • Loading branch information...
1 parent 6fb3a8f commit 95dcc4ea0bac2418199e011400d2bf7410ccefec @odrobnik odrobnik committed Oct 4, 2012
@@ -37,6 +37,11 @@ char *NewDTBase64Encode(
*/
@interface NSData (DTBase64)
+/**-------------------------------------------------------------------------------------
+ @name Working with base64-encoded Strings
+ ---------------------------------------------------------------------------------------
+ */
+
/**
Retrieve the NSData of a string encoded in Base64 encoding.
@param aString The base 64 string.
@@ -8,6 +8,16 @@
@interface NSData (DTCrypto)
+/**-------------------------------------------------------------------------------------
+ @name Generating HMAC Hashes
+ ---------------------------------------------------------------------------------------
+ */
+
+/*
+ Generates a HMAC from the receiver using the SHA1 algorithm
+ @param key The encryption key
+ @returns The encrypted hash
+ */
- (NSData *)encryptedDataUsingSHA1WithKey:(NSData *)key;
@end
@@ -6,8 +6,22 @@
// Copyright (c) 2012 Cocoanetics. All rights reserved.
//
+/**
+ Utilities for `NSImage`
+ */
@interface NSImage (DTUtilities)
+/**-------------------------------------------------------------------------------------
+ @name Saving to Disk
+ ---------------------------------------------------------------------------------------
+ */
+
+/**
+ Encodes the receiver to JPEG using the given compression Factor
+ @param compressionFactor The compression factor between 0.0 and 1.0
+ @param useAuxiliaryFile If `YES` then the writing is atomically
+ @returns `YES` if the writing to disk was successful
+ */
- (BOOL)writeJPEGToFile:(NSString *)path withCompressionFactor:(CGFloat)compressionFactor atomically:(BOOL)useAuxiliaryFile;
@end
@@ -106,6 +106,19 @@
A792968F1619F0FA00D5C979 /* DTUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = A7D0AA6C153C39920020F18B /* DTUtils.m */; };
A7949A3A14C963F500A8CCDE /* DTHTMLParser.h in Headers */ = {isa = PBXBuildFile; fileRef = A7949A3814C963F500A8CCDE /* DTHTMLParser.h */; settings = {ATTRIBUTES = (Public, ); }; };
A7949A3B14C963F500A8CCDE /* DTHTMLParser.h in Headers */ = {isa = PBXBuildFile; fileRef = A7949A3814C963F500A8CCDE /* DTHTMLParser.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ A79500F7161D680000358BC3 /* NSData+Base64.h in Headers */ = {isa = PBXBuildFile; fileRef = A79500F3161D680000358BC3 /* NSData+Base64.h */; };
+ A79500F8161D680000358BC3 /* NSData+Base64.h in Headers */ = {isa = PBXBuildFile; fileRef = A79500F3161D680000358BC3 /* NSData+Base64.h */; };
+ A79500F9161D680000358BC3 /* NSData+Base64.h in Headers */ = {isa = PBXBuildFile; fileRef = A79500F3161D680000358BC3 /* NSData+Base64.h */; };
+ A79500FA161D680000358BC3 /* NSData+Base64.m in Sources */ = {isa = PBXBuildFile; fileRef = A79500F4161D680000358BC3 /* NSData+Base64.m */; };
+ A79500FB161D680000358BC3 /* NSData+Base64.m in Sources */ = {isa = PBXBuildFile; fileRef = A79500F4161D680000358BC3 /* NSData+Base64.m */; };
+ A79500FC161D680000358BC3 /* NSData+Base64.m in Sources */ = {isa = PBXBuildFile; fileRef = A79500F4161D680000358BC3 /* NSData+Base64.m */; };
+ A79500FD161D680000358BC3 /* NSData+DTCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = A79500F5161D680000358BC3 /* NSData+DTCrypto.h */; };
+ A79500FE161D680000358BC3 /* NSData+DTCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = A79500F5161D680000358BC3 /* NSData+DTCrypto.h */; };
+ A79500FF161D680000358BC3 /* NSData+DTCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = A79500F5161D680000358BC3 /* NSData+DTCrypto.h */; };
+ A7950100161D680000358BC3 /* NSData+DTCrypto.m in Sources */ = {isa = PBXBuildFile; fileRef = A79500F6161D680000358BC3 /* NSData+DTCrypto.m */; };
+ A7950101161D680000358BC3 /* NSData+DTCrypto.m in Sources */ = {isa = PBXBuildFile; fileRef = A79500F6161D680000358BC3 /* NSData+DTCrypto.m */; };
+ A7950102161D680000358BC3 /* NSData+DTCrypto.m in Sources */ = {isa = PBXBuildFile; fileRef = A79500F6161D680000358BC3 /* NSData+DTCrypto.m */; };
+ A7950103161D694700358BC3 /* NSImage+DTUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = A79500F1161D67E300358BC3 /* NSImage+DTUtilities.m */; };
A7A7CC7914866CAF00EC2EE4 /* DTVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = A70B4CC81486621B00873A4A /* DTVersion.m */; };
A7A7CC7A14866CAF00EC2EE4 /* NSString+DTFormatNumbers.m in Sources */ = {isa = PBXBuildFile; fileRef = A70B4CCB1486621B00873A4A /* NSString+DTFormatNumbers.m */; };
A7A7CC7B14866CAF00EC2EE4 /* NSURL+DTAppLinks.m in Sources */ = {isa = PBXBuildFile; fileRef = A70B4CCD1486621B00873A4A /* NSURL+DTAppLinks.m */; };
@@ -311,6 +324,12 @@
A792968C1619D99400D5C979 /* NSDocument+DTFoundation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDocument+DTFoundation.m"; sourceTree = "<group>"; };
A7949A3814C963F500A8CCDE /* DTHTMLParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DTHTMLParser.h; sourceTree = "<group>"; };
A7949A3914C963F500A8CCDE /* DTHTMLParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DTHTMLParser.m; sourceTree = "<group>"; };
+ A79500F0161D67E300358BC3 /* NSImage+DTUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSImage+DTUtilities.h"; sourceTree = "<group>"; };
+ A79500F1161D67E300358BC3 /* NSImage+DTUtilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSImage+DTUtilities.m"; sourceTree = "<group>"; };
+ A79500F3161D680000358BC3 /* NSData+Base64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSData+Base64.h"; sourceTree = "<group>"; };
+ A79500F4161D680000358BC3 /* NSData+Base64.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSData+Base64.m"; sourceTree = "<group>"; };
+ A79500F5161D680000358BC3 /* NSData+DTCrypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSData+DTCrypto.h"; sourceTree = "<group>"; };
+ A79500F6161D680000358BC3 /* NSData+DTCrypto.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSData+DTCrypto.m"; sourceTree = "<group>"; };
A7AB8BF8156AA00700CBAB7E /* UIApplication+DTNetworkActivity.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIApplication+DTNetworkActivity.h"; sourceTree = "<group>"; };
A7AB8BF9156AA00700CBAB7E /* UIApplication+DTNetworkActivity.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIApplication+DTNetworkActivity.m"; sourceTree = "<group>"; };
A7B57ED8157004630091D4EF /* UIWebView+DTFoundation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIWebView+DTFoundation.h"; sourceTree = "<group>"; };
@@ -536,6 +555,8 @@
A79296841619D37A00D5C979 /* OS X */ = {
isa = PBXGroup;
children = (
+ A79500F0161D67E300358BC3 /* NSImage+DTUtilities.h */,
+ A79500F1161D67E300358BC3 /* NSImage+DTUtilities.m */,
A792967F1619C94100D5C979 /* NSWindowController+DTPanelControllerPresenting.h */,
A79296801619C94100D5C979 /* NSWindowController+DTPanelControllerPresenting.m */,
A792968B1619D99400D5C979 /* NSDocument+DTFoundation.h */,
@@ -591,6 +612,10 @@
A79296841619D37A00D5C979 /* OS X */,
A73D5BA9155271FD0024BDB7 /* NSArray+DTError.h */,
A73D5BAA155271FD0024BDB7 /* NSArray+DTError.m */,
+ A79500F3161D680000358BC3 /* NSData+Base64.h */,
+ A79500F4161D680000358BC3 /* NSData+Base64.m */,
+ A79500F5161D680000358BC3 /* NSData+DTCrypto.h */,
+ A79500F6161D680000358BC3 /* NSData+DTCrypto.m */,
A7D0AA23153C1B160020F18B /* NSDictionary+DTError.h */,
A7D0AA24153C1B160020F18B /* NSDictionary+DTError.m */,
A766135E16143F8A00DF6C2B /* NSMutableArray+DTMoving.h */,
@@ -815,6 +840,8 @@
A7EE2A0E1582CBFC00BB06DE /* DTActionSheet.h in Headers */,
A766136116143F8A00DF6C2B /* NSMutableArray+DTMoving.h in Headers */,
A7BB5517161AE1CA0054606E /* NSString+DTUTI.h in Headers */,
+ A79500F8161D680000358BC3 /* NSData+Base64.h in Headers */,
+ A79500FE161D680000358BC3 /* NSData+DTCrypto.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -826,6 +853,8 @@
A79296811619C94100D5C979 /* NSWindowController+DTPanelControllerPresenting.h in Headers */,
A792968D1619D99400D5C979 /* NSDocument+DTFoundation.h in Headers */,
A7BB5518161AE1CA0054606E /* NSString+DTUTI.h in Headers */,
+ A79500F9161D680000358BC3 /* NSData+Base64.h in Headers */,
+ A79500FF161D680000358BC3 /* NSData+DTCrypto.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -872,6 +901,8 @@
A7EE2A0D1582CBFC00BB06DE /* DTActionSheet.h in Headers */,
A766136016143F8A00DF6C2B /* NSMutableArray+DTMoving.h in Headers */,
A7BB5516161AE1CA0054606E /* NSString+DTUTI.h in Headers */,
+ A79500F7161D680000358BC3 /* NSData+Base64.h in Headers */,
+ A79500FD161D680000358BC3 /* NSData+DTCrypto.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1173,6 +1204,8 @@
FACE18A51612080300758319 /* DTPDFPage.m in Sources */,
A766136416143F8A00DF6C2B /* NSMutableArray+DTMoving.m in Sources */,
A7BB551A161AE1CA0054606E /* NSString+DTUTI.m in Sources */,
+ A79500FB161D680000358BC3 /* NSData+Base64.m in Sources */,
+ A7950101161D680000358BC3 /* NSData+DTCrypto.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1191,6 +1224,9 @@
A792968E1619D99400D5C979 /* NSDocument+DTFoundation.m in Sources */,
A792968F1619F0FA00D5C979 /* DTUtils.m in Sources */,
A7BB551C161AE1CA0054606E /* NSString+DTUTI.m in Sources */,
+ A79500FC161D680000358BC3 /* NSData+Base64.m in Sources */,
+ A7950102161D680000358BC3 /* NSData+DTCrypto.m in Sources */,
+ A7950103161D694700358BC3 /* NSImage+DTUtilities.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1224,6 +1260,8 @@
A7EE2A0F1582CBFC00BB06DE /* DTActionSheet.m in Sources */,
A766136316143F8A00DF6C2B /* NSMutableArray+DTMoving.m in Sources */,
A7BB5519161AE1CA0054606E /* NSString+DTUTI.m in Sources */,
+ A79500FA161D680000358BC3 /* NSData+Base64.m in Sources */,
+ A7950100161D680000358BC3 /* NSData+DTCrypto.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

0 comments on commit 95dcc4e

Please sign in to comment.