-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEditingViewController.h
44 lines (34 loc) · 1.15 KB
/
EditingViewController.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
//
// EditingViewController.h
// TimeClock
//
// Created by Matthew Baker on 10/9/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
typedef enum {
EditingViewControllerTypeString,
EditingViewControllerTypeDouble,
EditingViewControllerTypeDate,
EditingViewControllerTypeClient,
EditingViewControllerTypePhone
} EditingViewControllerType;
@interface EditingViewController : UIViewController {
UITextField *textField;
NSManagedObject *editedObject;
NSString *editedFieldKey;
NSString *editedFieldName;
EditingViewControllerType editType;
UIDatePicker *datePicker;
UIPickerView *clientPicker;
}
@property (nonatomic, retain) IBOutlet UITextField *textField;
@property (nonatomic, retain) IBOutlet UIPickerView *clientPicker;
@property (nonatomic, retain) NSManagedObject *editedObject;
@property (nonatomic, retain) NSString *editedFieldKey;
@property (nonatomic, retain) NSString *editedFieldName;
@property (nonatomic, assign) EditingViewControllerType editType;
@property (nonatomic, retain) IBOutlet UIDatePicker *datePicker;
- (IBAction)cancel;
- (IBAction)save;
- (void)enableControl:(EditingViewControllerType)type;
@end