Take an int instead of an NSInteger for the Bonjour port

This commit is contained in:
Mitchell Livingston 2012-09-09 12:26:18 +00:00
parent fadd8f704f
commit bb9c73bda4
3 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@
+ (BonjourController *) defaultController;
- (void) startWithPort: (NSInteger) port;
- (void) startWithPort: (int) port;
- (void) stop;
@end

View File

@ -45,7 +45,7 @@ BonjourController * fDefaultController = nil;
[super dealloc];
}
- (void) startWithPort: (NSInteger) port
- (void) startWithPort: (int) port
{
[self stop];

View File

@ -1962,7 +1962,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
NSString * location = [torrent dataLocation];
NSString *notificationTitle = NSLocalizedString(@"Download Complete", "notification title");
NSString * notificationTitle = NSLocalizedString(@"Download Complete", "notification title");
if ([NSApp isOnMountainLionOrBetter])
{
NSUserNotification * notification = [[NSUserNotificationMtLion alloc] init];
@ -2028,7 +2028,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
NSString * location = [torrent dataLocation];
NSString *notificationTitle = NSLocalizedString(@"Seeding Complete", "notification title");
NSString * notificationTitle = NSLocalizedString(@"Seeding Complete", "notification title");
if ([NSApp isOnMountainLionOrBetter])
{
NSUserNotification * notification = [[NSUserNotificationMtLion alloc] init];
@ -2967,7 +2967,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
case TR_PARSE_OK:
[self openFiles: [NSArray arrayWithObject: fullFile] addType: ADD_AUTO forcePath: nil];
NSString *notificationTitle = NSLocalizedString(@"Torrent File Auto Added", "notification title");
NSString * notificationTitle = NSLocalizedString(@"Torrent File Auto Added", "notification title");
if ([NSApp isOnMountainLionOrBetter])
{
NSUserNotification* notification = [[NSUserNotificationMtLion alloc] init];