-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathFW_model_test.m
42 lines (31 loc) · 1016 Bytes
/
FW_model_test.m
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
//
// FW_model_test.m
// data_m
//
// Created by Mike Fluff on 6/1/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "FW_model_test.h"
@implementation FW_model_test
@synthesize context;
- (id)init
{
self = [super init];
if (self) {
// Initialization code here.
}
return self;
}
-(void)FillModel
{
NSManagedObject *firewall = [NSEntityDescription insertNewObjectForEntityForName:@"Firewall_inst" inManagedObjectContext:self.context];
NSManagedObject *interfaces = [NSEntityDescription insertNewObjectForEntityForName:@"Firewall_inst" inManagedObjectContext:self.context];
NSManagedObject *networks = [NSEntityDescription insertNewObjectForEntityForName:@"Firewall_inst" inManagedObjectContext:self.context];
NSManagedObject *services = [NSEntityDescription insertNewObjectForEntityForName:@"Firewall_inst" inManagedObjectContext:self.context];
[firewall setValue:@"0" forKey:@"id"];
}
- (void)dealloc
{
[super dealloc];
}
@end