make the children in a FileListNode a property
This commit is contained in:
parent
1de3ddfbc9
commit
9ee681355d
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue