Ignore:
Timestamp:
Mar 15, 2006, 12:21:33 AM (16 years ago)
Author:
titer
Message:

Added [NSString stringWithInt:] for convenience.
UI cosmetic: bigger margin left from the pause/resume button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_api/macosx/PrefsController.m

    r106 r156  
    11/******************************************************************************
    2  * Copyright (c) 2005 Eric Petit
     2 * Copyright (c) 2005-2006 Transmission authors and contributors
    33 *
    44 * Permission is hereby granted, free of charge, to any person obtaining a
     
    2222
    2323#import "PrefsController.h"
     24#import "StringAdditions.h"
    2425#import "Utils.h"
    2526
     
    203204    //if value entered is not an int or is not in range do not change
    204205    if (![[fPortField stringValue] isEqualToString:
    205             [NSString stringWithFormat: @"%d", bindPort]]
     206            [NSString stringWithInt: bindPort]]
    206207            || bindPort < MIN_PORT
    207208            || bindPort > MAX_PORT)
     
    234235    //if value entered is not an int or is less than 0 do not change
    235236    if (![[fUploadField stringValue] isEqualToString:
    236             [NSString stringWithFormat: @"%d", uploadLimit]]
    237             || uploadLimit < 0)
     237            [NSString stringWithInt: uploadLimit]] || uploadLimit < 0)
    238238    {
    239239        NSBeep();
Note: See TracChangeset for help on using the changeset viewer.