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 <CoreData/CoreData.h> | |
@interface Photo : NSManagedObject { | |
} | |
@property (nonatomic, retain) NSString * imagePath; | |
@property (nonatomic, retain) NSString * thumbnailPath; | |
@property (nonatomic, retain) UIImage* image; | |
@property (nonatomic, retain, readonly) UIImage* thumbnail; |
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 "UIImage+Resizing.h" | |
@implementation UIImage (Resizing) | |
/** | |
* Creates a resized, autoreleased copy of the image, with the given dimensions. | |
* @return an autoreleased, resized copy of the image | |
*/ | |
- (UIImage*) resizedImageWithSize:(CGSize)size | |
{ |
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
@interface UIImage (Resizing) | |
- (UIImage*) resizedImageWithSize:(CGSize)size; | |
@end |
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
@interface ExtendedManagedObject : NSManagedObject { | |
BOOL traversed; | |
} | |
@property (nonatomic, assign) BOOL traversed; | |
- (NSDictionary*) toDictionary; | |
- (void) populateFromDictionary:(NSDictionary*)dict; | |
+ (ExtendedManagedObject*) createManagedObjectFromDictionary:(NSDictionary*)dict | |
inContext:(NSManagedObjectContext*)context; |
NewerOlder