Nimbus
0.9.3 - Nimbus is proudly hosted on Github
An iOS framework whose growth is bounded by O(documentation).
|
For generating code where methods can't be used.
Defines | |
#define | __NI_DEPRECATED_METHOD __attribute__((deprecated)) |
#define | NI_FIX_CATEGORY_BUG(name) |
#define | NI_RELEASE_SAFELY(__POINTER) { [__POINTER release]; __POINTER = nil; } |
#define | RGBCOLOR(r, g, b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1] |
#define | RGBACOLOR(r, g, b, a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)] |
#define __NI_DEPRECATED_METHOD __attribute__((deprecated)) |
Mark a method or property as deprecated to the compiler.
Any use of a deprecated method or property will flag a warning when compiling.
Borrowed from Apple's AvailabiltyInternal.h header.
__AVAILABILITY_INTERNAL_DEPRECATED __attribute__((deprecated))
Definition at line 46 of file NIPreprocessorMacros.h.
#define NI_FIX_CATEGORY_BUG | ( | name | ) |
@interface NI_FIX_CATEGORY_BUG_##name @end \ @implementation NI_FIX_CATEGORY_BUG_##name @end
Force a category to be loaded when an app starts up.
Add this macro before each category implementation, so we don't have to use -all_load or -force_load to load object files from static libraries that only contain categories and no classes. See http://developer.apple.com/library/mac/#qa/qa2006/qa1490.html for more info.
Definition at line 56 of file NIPreprocessorMacros.h.
#define NI_RELEASE_SAFELY | ( | __POINTER | ) | { [__POINTER release]; __POINTER = nil; } |
Release and assign nil to an object.
This macro is preferred to simply releasing an object to avoid accidentally using the object later on in a method.
Definition at line 65 of file NIPreprocessorMacros.h.
#define RGBCOLOR | ( | r, | |
g, | |||
b | |||
) | [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1] |
Creates an opaque UIColor object from a byte-value color definition.
Definition at line 70 of file NIPreprocessorMacros.h.
#define RGBACOLOR | ( | r, | |
g, | |||
b, | |||
a | |||
) | [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)] |
Creates a UIColor object from a byte-value color definition and alpha transparency.
Definition at line 75 of file NIPreprocessorMacros.h.