This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface NSData (Hex) | |
- (NSString*)hexString; | |
- (NSString*)hexStringWithCaps:(BOOL)caps; | |
+ (NSData*)dataWithHexString:(NSString*)hexString; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface UIColor (String) | |
+ (UIColor*)colorWithString:(NSString*)str; | |
- (UIColor*)initWithString:(NSString*)str; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ExtendedAttributes.h | |
// NSFileManager+Xattr | |
// | |
// Created by Jesús A. Álvarez on 2008-12-17. | |
// Copyright 2008-2009 namedfork.net. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <sys/xattr.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __WIN32__ | |
#include <windows.h> | |
typedef HANDLE mutex_t; | |
typedef HANDLE thread_t; | |
#define mutex_init(m) m = CreateMutex(NULL, FALSE, NULL) | |
#define mutex_lock(m) WaitForSingleObject(m, INFINITE) | |
#define mutex_unlock(m) ReleaseMutex(m) | |
#define mutex_destroy(m) CloseHandle(m) |
NewerOlder