mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-07 23:06:59 +08:00
Expanded comments and cleaned up more TODO's. Just a couple of bug fixes left in RestKit and styling work on this app!
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
#import <RestKit/CoreData/CoreData.h>
|
||||
#import "DBUser.h"
|
||||
|
||||
// Posted when a content object has changed
|
||||
extern NSString* const DBContentObjectDidChangeNotification;
|
||||
|
||||
/**
|
||||
* Abstract superclass for content models in the Discussion Board. Provides
|
||||
* common property & method definitions for the system
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#import "DBContentObject.h"
|
||||
|
||||
NSString* const DBContentObjectDidChangeNotification = @"DBContentObjectDidChangeNotification";
|
||||
|
||||
@implementation DBContentObject
|
||||
|
||||
@dynamic userID;
|
||||
|
||||
@@ -91,4 +91,9 @@
|
||||
*/
|
||||
@property (nonatomic, retain) UIImage* newAttachment;
|
||||
|
||||
/**
|
||||
* Returns YES when there is already an Image attached to this Post
|
||||
*/
|
||||
- (BOOL)hasAttachment;
|
||||
|
||||
@end
|
||||
|
||||
@@ -99,4 +99,8 @@
|
||||
return params;
|
||||
}
|
||||
|
||||
- (BOOL)hasAttachment {
|
||||
return NO == [[self attachmentPath] isWhitespaceAndNewlines];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user