public
Description: XBMC iPhone Remote
Homepage: remote.collect3.com.au
Clone URL: git://github.com/djfumberger/xbmc-remote.git
xbmc-remote / DirectoryPath.m
100644 28 lines (25 sloc) 0.631 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
//
// DirectoryPath.m
// xbmcremote
//
// Created by David Fumberger on 4/11/08.
// Copyright 2008 collect3. All rights reserved.
//
 
#import "DirectoryPath.h"
#import "PathItem.h";
 
@implementation DirectoryPath
@synthesize mask;
- (NSString*)GetPath {
PathItem *pathItem = [items lastObject];
return (pathItem == nil) ? (@"") : (pathItem.value);
}
- (void) encodeWithCoder: (NSCoder *)coder {
[super encodeWithCoder:coder];
[coder encodeInteger: mask forKey:@"mask"];
}
- (id)initWithCoder:(NSCoder *)coder {
[super initWithCoder:coder];
self.mask = [coder decodeIntegerForKey:@"mask"];
return self;
}
@end