This file contains 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
- (void)fetchDepartmentExpenditureTotals | |
{ | |
NSFetchRequest *request = [NSFetchRequest fetchRequestWithEntityName:@"Department"]; | |
// get all departments | |
request.predicate = nil; | |
// perhaps a second fetch could get the names and sort the same way, but this feels kludgy | |
NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES]; | |
request.sortDescriptors = [NSArray arrayWithObject:sortDescriptor]; | |
This file contains 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 "Category.h" | |
@interface Category (Transient) | |
@property (nonatomic, strong) UIColor *color; | |
- (UIColor *)primitiveColor; | |
- (void)setPrimitiveColor:(UIColor *)value; | |
- (NSData *)primitiveColorData; | |
- (void)setPrimitiveColorData:(NSData *)value; |