2013-02-14 17:59:12 +04:00
|
|
|
/*
|
|
|
|
Additions to Cocoa touch classes
|
|
|
|
|
2013-12-04 14:37:57 +04:00
|
|
|
Copyright 2013 Thincast Technologies GmbH, Authors: Dorian Johnson, Martin Fleisz
|
2013-02-14 17:59:12 +04:00
|
|
|
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
|
|
If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@interface NSObject (TSXAdditions)
|
|
|
|
- (void)setValuesForKeyPathsWithDictionary:(NSDictionary *)keyedValues;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma mark -
|
|
|
|
@interface NSString (TSXAdditions)
|
|
|
|
+ (NSString*)stringWithUUID;
|
|
|
|
- (NSData*)dataFromHexString;
|
|
|
|
+ (NSString*)hexStringFromData:(const unsigned char *)data ofSize:(unsigned int)size withSeparator:(NSString *)sep afterNthChar:(int)sepnth;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSDictionary (TSXAdditions)
|
|
|
|
- (id)mutableDeepCopy;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSData (TSXAdditions)
|
|
|
|
- (NSString *)hexadecimalString;
|
|
|
|
- (NSString *)base64EncodedString;
|
|
|
|
@end
|