-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathArticleList.h
52 lines (45 loc) · 1.31 KB
/
ArticleList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// ArticleList.h
// spires
//
// Created by Yuji on 08/10/15.
// Copyright 2008 Y. Tachikawa. All rights reserved.
//
@import CoreData;
#if TARGET_OS_IPHONE
@import UIKit;
#else
@import Cocoa;
#endif
@class Article;
@interface ArticleList : NSManagedObject
{
}
@property NSString* name;
@property ArticleList* parent;
@property NSSet* children;
@property NSSet* articles;
@property NSString* searchString;
@property NSArray* sortDescriptors; // Transformable attribute.
#if TARGET_OS_IPHONE
@property (readonly) UIImage* icon;
@property (readonly) UIBarButtonItem*barButtonItem;
#else
@property (readonly) NSImage* icon;
@property (readonly) BOOL hasButton;
#endif
@property (readonly) NSString* placeholderForSearchField;
@property NSNumber* positionInView;
@property (readonly) BOOL searchStringEnabled;
@property (readonly) NSIndexPath*indexPath;
-(void)reload;
+(void)createStandardArticleListsInMOC:(NSManagedObjectContext*)moc;
+(void)rearrangePositionInViewInMOC:(NSManagedObjectContext*)moc;
+(NSArray*)articleListsInArticleList:(ArticleList*)al inMOC:(NSManagedObjectContext*)moc;
@end
@interface ArticleList (CoreDataGeneratedAccessors)
- (void)addArticlesObject:(Article *)value;
- (void)removeArticlesObject:(Article *)value;
- (void)addArticles:(NSSet *)value;
- (void)removeArticles:(NSSet *)value;
@end