forked from rentzsch/mogenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b5673c
commit 2f85dc5
Showing
28 changed files
with
1,659 additions
and
45 deletions.
There are no files selected for viewing
Binary file modified
BIN
+56.3 KB
(220%)
...ita Zhuk/ponso/sample project/PonsoTest/MyModel.xcdatamodeld/MyModel.xcdatamodel/elements
Binary file not shown.
Binary file modified
BIN
+13.4 KB
(220%)
...ikita Zhuk/ponso/sample project/PonsoTest/MyModel.xcdatamodeld/MyModel.xcdatamodel/layout
Binary file not shown.
109 changes: 73 additions & 36 deletions
109
... templates/Nikita Zhuk/ponso/sample project/PonsoTest/PonsoTest.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
131 changes: 122 additions & 9 deletions
131
contributed templates/Nikita Zhuk/ponso/sample project/PonsoTest/PonsoTest/main.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...d templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelAssistant.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// ModelAssistant.h | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "_ModelAssistant.h" | ||
|
||
@interface ModelAssistant : _ModelAssistant <_ModelAssistant> | ||
// Custom logic goes here. | ||
@end |
18 changes: 18 additions & 0 deletions
18
...d templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelAssistant.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// ModelAssistant.m | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "ModelAssistant.h" | ||
|
||
@implementation ModelAssistant | ||
|
||
#pragma mark Abstract method overrides | ||
|
||
|
||
|
||
|
||
// Custom logic goes here. | ||
|
||
@end |
11 changes: 11 additions & 0 deletions
11
...ted templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelCompany.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// ModelCompany.h | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "_ModelCompany.h" | ||
|
||
@interface ModelCompany : _ModelCompany <_ModelCompany> | ||
// Custom logic goes here. | ||
@end |
18 changes: 18 additions & 0 deletions
18
...ted templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelCompany.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// ModelCompany.m | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "ModelCompany.h" | ||
|
||
@implementation ModelCompany | ||
|
||
#pragma mark Abstract method overrides | ||
|
||
|
||
|
||
|
||
// Custom logic goes here. | ||
|
||
@end |
11 changes: 11 additions & 0 deletions
11
... templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelDepartment.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// ModelDepartment.h | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "_ModelDepartment.h" | ||
|
||
@interface ModelDepartment : _ModelDepartment <_ModelDepartment> | ||
// Custom logic goes here. | ||
@end |
18 changes: 18 additions & 0 deletions
18
... templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelDepartment.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// ModelDepartment.m | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "ModelDepartment.h" | ||
|
||
@implementation ModelDepartment | ||
|
||
#pragma mark Abstract method overrides | ||
|
||
|
||
|
||
|
||
// Custom logic goes here. | ||
|
||
@end |
11 changes: 11 additions & 0 deletions
11
...s/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelDepartmentAssistant.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// ModelDepartmentAssistant.h | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "_ModelDepartmentAssistant.h" | ||
|
||
@interface ModelDepartmentAssistant : _ModelDepartmentAssistant <_ModelDepartmentAssistant> | ||
// Custom logic goes here. | ||
@end |
23 changes: 23 additions & 0 deletions
23
...s/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelDepartmentAssistant.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// ModelDepartmentAssistant.m | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "ModelDepartmentAssistant.h" | ||
#import "ModelDepartment.h" | ||
#import "ModelCompany.h" | ||
|
||
@implementation ModelDepartmentAssistant | ||
|
||
#pragma mark Abstract method overrides | ||
|
||
|
||
- (ModelAssistant *)fetchAssistantObjectWithIDForAssistantRelationship:(id)objectID | ||
{ | ||
NSAssert(self.department.company != nil, @""); | ||
|
||
return [[self.department.company.assistants filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"name = %@", objectID]] lastObject]; | ||
} | ||
|
||
@end |
11 changes: 11 additions & 0 deletions
11
...es/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelDepartmentEmployee.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// ModelDepartmentEmployee.h | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "_ModelDepartmentEmployee.h" | ||
|
||
@interface ModelDepartmentEmployee : _ModelDepartmentEmployee <_ModelDepartmentEmployee> | ||
// Custom logic goes here. | ||
@end |
23 changes: 23 additions & 0 deletions
23
...es/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelDepartmentEmployee.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// ModelDepartmentEmployee.m | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "ModelDepartmentEmployee.h" | ||
#import "ModelDepartment.h" | ||
#import "ModelCompany.h" | ||
|
||
@implementation ModelDepartmentEmployee | ||
|
||
#pragma mark Abstract method overrides | ||
|
||
|
||
- (ModelEmployee *)fetchEmployeeObjectWithIDForEmployeeRelationship:(id)objectID | ||
{ | ||
NSAssert(self.department.company != nil, @""); | ||
|
||
return [[self.department.company.employees filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"name = %@", objectID]] lastObject]; | ||
} | ||
|
||
@end |
11 changes: 11 additions & 0 deletions
11
...ed templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelEmployee.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// ModelEmployee.h | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "_ModelEmployee.h" | ||
|
||
@interface ModelEmployee : _ModelEmployee <_ModelEmployee> | ||
// Custom logic goes here. | ||
@end |
21 changes: 21 additions & 0 deletions
21
...ed templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/ModelEmployee.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// ModelEmployee.m | ||
// | ||
// $Id$ | ||
// | ||
|
||
#import "ModelEmployee.h" | ||
#import "ModelCompany.h" | ||
|
||
@implementation ModelEmployee | ||
|
||
#pragma mark Abstract method overrides | ||
|
||
- (ModelAssistant *)fetchAssistantObjectWithIDForAssistantRelationship:(id)objectID | ||
{ | ||
NSAssert(self.company != nil, @""); | ||
|
||
return [[self.company.assistants filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"name = %@", objectID]] lastObject]; | ||
} | ||
|
||
@end |
55 changes: 55 additions & 0 deletions
55
... templates/Nikita Zhuk/ponso/sample project/PonsoTest/Sources/DataModel/_ModelAssistant.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// | ||
// ModelAssistant.h | ||
// | ||
// $Id$ | ||
// | ||
// DO NOT EDIT. This file is machine-generated and constantly overwritten. | ||
// Make changes to ModelAssistant.h instead. | ||
// | ||
|
||
|
||
#import <Foundation/Foundation.h> | ||
#import "ModelObject.h" | ||
|
||
@class ModelEmployee; | ||
@class ModelCompany; | ||
@class ModelDepartmentAssistant; | ||
|
||
|
||
@protocol _ModelAssistant | ||
|
||
@end | ||
|
||
|
||
@interface _ModelAssistant : ModelObject | ||
{ | ||
NSDate *birthDate; | ||
NSString *name; | ||
|
||
|
||
ModelEmployee *boss; | ||
|
||
ModelCompany *company; | ||
|
||
NSArray *departments; | ||
|
||
} | ||
|
||
@property (nonatomic, retain, readwrite) NSDate *birthDate; | ||
@property (nonatomic, retain, readwrite) NSString *name; | ||
|
||
@property (nonatomic, assign, readwrite) ModelEmployee *boss; | ||
|
||
@property (nonatomic, assign, readwrite) ModelCompany *company; | ||
|
||
@property (nonatomic, retain, readonly) NSArray *departments; | ||
|
||
|
||
|
||
|
||
- (void)addDepartmentsObject:(ModelDepartmentAssistant*)value_; | ||
- (void)removeDepartmentsObjects; | ||
- (void)removeDepartmentsObject:(ModelDepartmentAssistant*)value_; | ||
|
||
|
||
@end |
Oops, something went wrong.