for the fun of it, replace some variables with @property in the file and tracker nodes

This commit is contained in:
Mitchell Livingston
2012-01-20 02:41:49 +00:00
parent 12dc463e61
commit 63b5979594
5 changed files with 22 additions and 51 deletions

View File

@@ -32,6 +32,13 @@
@implementation FileListNode
@synthesize name = fName;
@synthesize path = fPath;
@synthesize torrent = fTorrent;
@synthesize size = fSize;
@synthesize icon = fIcon;
@synthesize isFolder = fIsFolder;
- (id) initWithFolderName: (NSString *) name path: (NSString *) path torrent: (Torrent *) torrent
{
if ((self = [self initWithFolder: YES name: name path: path torrent: torrent]))
@@ -96,31 +103,11 @@
return [NSString stringWithFormat: @"%@ (folder: %@)", fName, fIndexes];
}
- (BOOL) isFolder
{
return fIsFolder;
}
- (NSString *) name
{
return fName;
}
- (NSString *) path
{
return fPath;
}
- (NSIndexSet *) indexes
{
return fIndexes;
}
- (uint64_t) size
{
return fSize;
}
- (NSImage *) icon
{
if (!fIcon)
@@ -136,11 +123,6 @@
return fChildren;
}
- (Torrent *) torrent
{
return fTorrent;
}
@end
@implementation FileListNode (Private)