-
Notifications
You must be signed in to change notification settings - Fork 2
/
PBXReferenceProxy.m
34 lines (31 loc) · 785 Bytes
/
PBXReferenceProxy.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
//
// PBXReferenceProxy.m
// XcodeProjectEditor
//
// Created by Daniel DeCovnick on 4/9/10.
// Copyright 2010 Softyards Software. All rights reserved.
//
#import "PBXReferenceProxy.h"
#import "SYPBXProjArchiver.h"
@implementation PBXReferenceProxy {
NSString *_remoteRef;
}
- (PBXContainerItemProxy *)remoteRef
{
return [self.archiver.objectsByArchiveIDs objectForKey:_remoteRef];
}
- (void)setRemoteRef:(NSString *)newRemoteRef
{
_remoteRef = newRemoteRef;
}
- (NSDictionary *)attrs
{
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:
_fileType, @"fileType",
_path, @"path",
_remoteRef, @"remoteRef",
_sourceTree, @"sourceTree", nil];
[dict addEntriesFromDictionary:[super attrs]];
return dict;
}
@end