Ignore:
Timestamp:
May 29, 2012, 1:03:21 AM (9 years ago)
Author:
livings124
Message:

session_handle does not need to be a global variable in the prefs controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r13325 r13326  
    6767@implementation PrefsController
    6868
    69 #warning just call method in Controller?
    70 tr_session * fHandle;
    71 + (void) setHandle: (tr_session *) handle
    72 {
    73     fHandle = handle;
    74 }
    75 
    76 #warning elliminate?
    77 + (tr_session *) handle
    78 {
    79     return fHandle;
    80 }
    81 
    82 - (id) init
     69- (id) initWithHandle: (tr_session *) handle
    8370{
    8471    if ((self = [super initWithWindowNibName: @"PrefsWindow"]))
    8572    {
     73        fHandle = handle;
     74       
    8675        fDefaults = [NSUserDefaults standardUserDefaults];
    8776       
Note: See TracChangeset for help on using the changeset viewer.