forked from appsquickly/XcodeEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXCXibDefinition.m
More file actions
executable file
·63 lines (47 loc) · 1.67 KB
/
XCXibDefinition.m
File metadata and controls
executable file
·63 lines (47 loc) · 1.67 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
////////////////////////////////////////////////////////////////////////////////
//
// JASPER BLUES
// Copyright 2012 Jasper Blues
// All Rights Reserved.
//
// NOTICE: Jasper Blues permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
#import "XCXibDefinition.h"
@implementation XCXibDefinition
@synthesize name = _name;
@synthesize content = _content;
/* ====================================================================================================================================== */
#pragma mark - Class Methods
+ (XCXibDefinition*)xibDefinitionWithName:(NSString*)name
{
return [[XCXibDefinition alloc] initWithName:name];
}
+ (XCXibDefinition*)xibDefinitionWithName:(NSString*)name content:(NSString*)content
{
return [[XCXibDefinition alloc] initWithName:name content:content];
}
/* ====================================================================================================================================== */
#pragma mark - Initialization & Destruction
- (id)initWithName:(NSString*)name
{
return [self initWithName:name content:nil];
}
- (id)initWithName:(NSString*)name content:(NSString*)content
{
self = [super init];
if (self)
{
_name = [name copy];
_content = [content copy];
}
return self;
}
/* ====================================================================================================================================== */
#pragma mark - Interface Methods
- (NSString*)xibFileName
{
return [_name stringByAppendingString:@".xib"];
}
@end