-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNPCViewController.h
38 lines (29 loc) · 1020 Bytes
/
NPCViewController.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
//
// NPCViewController.h
// DM
//
// Created by Luis Fernando Mata Licón on 06/10/14.
// Copyright (c) 2014 Luis Fernando Mata. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NPCViewController : NSViewController{
//New NPC form's fields
__weak IBOutlet NSTextField *nameTxt;
__weak IBOutlet NSTextField *ageTxt;
__weak IBOutlet NSTextField *jobTxt;
__weak IBOutlet NSTextField *commentsTxt;
__weak IBOutlet NSPopUpButton *racePopUp;
//Edit NPC form's fields
__weak IBOutlet NSButton *editBttn;
}
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (strong) IBOutlet NSWindow *windowInfo;
@property (strong) IBOutlet NSArrayController *npcArrayController;
@property (strong) IBOutlet NSWindow *editWindow;
- (IBAction)addNPC:(id)sender;
- (IBAction)openForm:(id)sender;
- (IBAction)openEditWindow:(id)sender;
- (IBAction)editNPC:(id)sender;
- (IBAction)closeEdit:(id)sender;
- (IBAction)closeWindow:(id)sender;
@end