-
Notifications
You must be signed in to change notification settings - Fork 2
/
PBXTargetDependency.m
40 lines (37 loc) · 896 Bytes
/
PBXTargetDependency.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
//
// PBXTargetDependency.m
// XcodeProjectEditor
//
// Created by Daniel DeCovnick on 4/6/10.
// Copyright 2010 Softyards Software. All rights reserved.
//
#import "PBXTargetDependency.h"
#import "PBXContainerItemProxy.h"
#import "SYPBXProjArchiver.h"
@implementation PBXTargetDependency {
NSString *_targetProxy;
NSString *_target;
}
-(PBXContainerItemProxy *)targetProxy
{
return [self.archiver.objectsByArchiveIDs objectForKey:_targetProxy];
}
-(void)setTargetProxy:(NSString *)tp
{
_targetProxy = tp;
}
-(PBXNativeTarget *)target
{
return [self.archiver.objectsByArchiveIDs objectForKey:_target];
}
-(void)setTarget:(NSString *)t
{
_target = t;
}
-(NSDictionary *)attrs
{
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:_name, @"name", _targetProxy, @"targetProxy", nil];
[dict addEntriesFromDictionary:[super attrs]];
return dict;
}
@end