Changeset 11868


Ignore:
Timestamp:
Feb 10, 2011, 12:58:05 AM (11 years ago)
Author:
livings124
Message:

remember the text in the URL sheet

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r11867 r11868  
    12301230}
    12311231
    1232 #warning need to remember sheet text between runs
    12331232- (void) urlSheetDidEnd: (URLSheetWindowController *) controller url: (NSString *) urlString returnCode: (NSInteger) returnCode
    12341233{
  • trunk/macosx/URLSheetWindowController.m

    r11867 r11868  
    2828@implementation URLSheetWindowController
    2929
     30NSString * urlString = @"";
     31
    3032- (id) initWithController: (Controller *) controller
    3133{
     
    4042{
    4143    [fLabelField setStringValue: NSLocalizedString(@"Internet address of torrent file:", "URL sheet label")];
     44   
     45    [fTextField setStringValue: urlString];
     46    [fTextField selectText: self];
    4247}
    4348
     
    6267- (void) sheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo
    6368{
    64     [fController urlSheetDidEnd: self url: [fTextField stringValue] returnCode: returnCode];
     69    urlString = [fTextField stringValue];
     70    [fController urlSheetDidEnd: self url: urlString returnCode: returnCode];
    6571}
    6672
Note: See TracChangeset for help on using the changeset viewer.