Changeset 6737


Ignore:
Timestamp:
Sep 7, 2008, 4:08:29 PM (13 years ago)
Author:
livings124
Message:

trivial changes

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/AboutWindowController.m

    r6287 r6737  
    4848   
    4949    //size license button
    50     float oldButtonWidth = [fLicenseButton frame].size.width;
     50    CGFloat oldButtonWidth = [fLicenseButton frame].size.width;
    5151   
    5252    [fLicenseButton setTitle: NSLocalizedString(@"License", "About window -> license button")];
  • trunk/macosx/Badger.h

    r6196 r6737  
    3030    tr_handle * fLib;
    3131   
    32     int fCompleted;
     32    NSInteger fCompleted;
    3333   
    3434    //tiger-only fields
    3535    NSImage * fDockIcon, * fBadge;
    3636    NSDictionary * fAttributes;
    37     int fCompletedBadged;
     37    NSInteger fCompletedBadged;
    3838    BOOL fSpeedBadge, fQuittingTiger;
    3939}
  • trunk/macosx/BlocklistDownloaderViewController.m

    r6675 r6737  
    4848    [fButton setTitle: NSLocalizedString(@"Cancel", "Blocklist -> cancel button")];
    4949   
    50     float oldWidth = [fButton frame].size.width;
     50    CGFloat oldWidth = [fButton frame].size.width;
    5151    [fButton sizeToFit];
    5252    NSRect buttonFrame = [fButton frame];
  • trunk/macosx/PortChecker.h

    r6733 r6737  
    3737    id fDelegate;
    3838    port_status_t fStatus;
    39     int fPortNumber;
     39    NSInteger fPortNumber;
    4040   
    4141    NSURLConnection * fConnection;
     
    4545}
    4646
    47 - (id) initForPort: (int) portNumber delay: (BOOL) delay withDelegate: (id) delegate;
     47- (id) initForPort: (NSInteger) portNumber delay: (BOOL) delay withDelegate: (id) delegate;
    4848- (void) cancelProbe;
    4949
    50 - (void) callBackWithStatus: (port_status_t) status;
    5150- (port_status_t) status;
    5251
  • trunk/macosx/PortChecker.m

    r6734 r6737  
    3333- (void) startProbe;
    3434
     35- (void) callBackWithStatus: (port_status_t) status;
     36
    3537@end
    3638
    3739@implementation PortChecker
    3840
    39 - (id) initForPort: (int) portNumber delay: (BOOL) delay withDelegate: (id) delegate
     41- (id) initForPort: (NSInteger) portNumber delay: (BOOL) delay withDelegate: (id) delegate
    4042{
    4143    if ((self = [super init]))
     
    7678   
    7779    [fConnection cancel];
    78 }
    79 
    80 - (void) callBackWithStatus: (port_status_t) status
    81 {
    82     fStatus = status;
    83    
    84     if (fDelegate && [fDelegate respondsToSelector: @selector(portCheckerDidFinishProbing:)])
    85         [fDelegate performSelectorOnMainThread: @selector(portCheckerDidFinishProbing:) withObject: self waitUntilDone: NO];
    8680}
    8781
     
    150144}
    151145
     146- (void) callBackWithStatus: (port_status_t) status
     147{
     148    fStatus = status;
     149   
     150    if (fDelegate && [fDelegate respondsToSelector: @selector(portCheckerDidFinishProbing:)])
     151        [fDelegate performSelectorOnMainThread: @selector(portCheckerDidFinishProbing:) withObject: self waitUntilDone: NO];
     152}
     153
    152154@end
    153155
Note: See TracChangeset for help on using the changeset viewer.