-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleEntityWithBitmasks.h
More file actions
43 lines (30 loc) · 1.11 KB
/
SampleEntityWithBitmasks.h
File metadata and controls
43 lines (30 loc) · 1.11 KB
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
//
// SampleEntityWithBitmasks.h
// GTBitmask
//
// Created by Andrew Mackenzie-Ross on 17/12/10.
//
#import <CoreData/CoreData.h>
#import "NSManagedObject+GTBitmask.h"
@class GTBitmask;
@interface SampleEntityWithBitmasks : NSManagedObject
{
GTBitmask *daysInTheWeek;
GTBitmask *partsOfTheDay;
}
@property (nonatomic, copy) NSString * name;
@property (nonatomic, retain) NSNumber * daysOfTheWeekBitmask;
@property (nonatomic, retain) NSNumber * partsOfTheDayBitmask;
// these properties are all stored in partsOfTheDayBitmask
@property (nonatomic, retain) NSNumber * GTMorning;
@property (nonatomic, retain) NSNumber * GTAfternoon;
@property (nonatomic, retain) NSNumber * GTEvening;
// these properties are all stored in daysOfTheWeekBitmask
@property (nonatomic, retain) NSNumber * GTMonday;
@property (nonatomic, retain) NSNumber * GTTuesday;
@property (nonatomic, retain) NSNumber * GTWednesday;
@property (nonatomic, assign) NSNumber * GTThursday;
@property (nonatomic, retain) NSNumber * GTFriday;
@property (nonatomic, retain) NSNumber * GTSaturday;
@property (nonatomic, retain) NSNumber * GTSunday;
@end