mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 05:08:32 +00:00
for the fun of it, replace some variables with @property in the file and tracker nodes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user