make the children in a FileListNode a property

This commit is contained in:
Mitchell Livingston 2013-02-19 01:29:25 +00:00
parent 1de3ddfbc9
commit 9ee681355d
2 changed files with 3 additions and 7 deletions

View File

@ -30,14 +30,13 @@
{
NSMutableIndexSet * fIndexes;
NSMutableArray * fChildren;
NSString * fName;
NSString * fPath;
Torrent * fTorrent;
uint64_t fSize;
NSImage * fIcon;
BOOL fIsFolder;
NSMutableArray * fChildren;
}
@property (nonatomic, copy, readonly) NSString * name;
@ -48,6 +47,7 @@
@property (nonatomic, readonly) uint64_t size;
@property (nonatomic, retain, readonly) NSImage * icon;
@property (nonatomic, readonly) BOOL isFolder;
@property (nonatomic, retain, readonly) NSMutableArray * children;
@property (nonatomic, retain, readonly) NSIndexSet * indexes;
@ -59,8 +59,6 @@
- (NSString *) description;
- (NSMutableArray *) children;
- (BOOL) updateFromOldName: (NSString *) oldName toNewName: (NSString *) newName inPath: (NSString *) path;
@end

View File

@ -40,6 +40,7 @@
@synthesize icon = fIcon;
@synthesize isFolder = fIsFolder;
@synthesize indexes = fIndexes;
@synthesize children = fChildren;
- (id) initWithFolderName: (NSString *) name path: (NSString *) path torrent: (Torrent *) torrent
{
@ -89,11 +90,8 @@
[fName release];
[fPath release];
[fIndexes release];
[fIcon release];
[fChildren release];
[super dealloc];
}