diff --git a/src/SFML/Window/OSX/SFApplication.m b/src/SFML/Window/OSX/SFApplication.m index fc866420..f7668758 100644 --- a/src/SFML/Window/OSX/SFApplication.m +++ b/src/SFML/Window/OSX/SFApplication.m @@ -239,6 +239,7 @@ //////////////////////////////////////////////////////// -(void)bringAllToFront:(id)sender { + (void)sender; [[NSApp windows] makeObjectsPerformSelector:@selector(orderFrontRegardless)]; } diff --git a/src/SFML/Window/OSX/SFApplicationDelegate.m b/src/SFML/Window/OSX/SFApplicationDelegate.m index 401332d0..c22b720b 100644 --- a/src/SFML/Window/OSX/SFApplicationDelegate.m +++ b/src/SFML/Window/OSX/SFApplicationDelegate.m @@ -35,7 +35,8 @@ //////////////////////////////////////////////////////////// -(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)sender { - // TODO generate close event for each SFML window + (void)sender; + // Generate close event for each SFML window [NSApp makeWindowsPerform:@selector(sfClose) inOrder:NO]; return NSTerminateCancel; } @@ -44,6 +45,7 @@ //////////////////////////////////////////////////////////// -(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)theApplication { + (void)theApplication; return YES; } diff --git a/src/SFML/Window/OSX/SFSilentResponder.m b/src/SFML/Window/OSX/SFSilentResponder.m index df1eadd3..5789e44d 100644 --- a/src/SFML/Window/OSX/SFSilentResponder.m +++ b/src/SFML/Window/OSX/SFSilentResponder.m @@ -33,6 +33,7 @@ -(void)doCommandBySelector:(SEL)sel { // Just do nothing, to prevent sound alerts + (void)sel; } @end diff --git a/src/SFML/Window/OSX/SFViewController.mm b/src/SFML/Window/OSX/SFViewController.mm index 60fcf47a..bcb14efc 100644 --- a/src/SFML/Window/OSX/SFViewController.mm +++ b/src/SFML/Window/OSX/SFViewController.mm @@ -130,6 +130,8 @@ ////////////////////////////////////////////////////////. -(void)setWindowPositionToX:(int)x Y:(int)y { + (void)x; + (void)y; sf::err() << "Cannot move SFML area when SFML is integrated in a NSView. Use the view handler directly instead." << std::endl; } @@ -157,6 +159,7 @@ //////////////////////////////////////////////////////// -(void)changeTitle:(NSString*)title { + (void)title; sf::err() << "Cannot change the title of the SFML area when SFML is integrated in a NSView." << std::endl; } @@ -201,6 +204,9 @@ by:(unsigned int)height with:(const sf::Uint8*)pixels { + (void)width; + (void)height; + (void)pixels; sf::err() << "Cannot set an icon when SFML is integrated in a NSView." << std::endl; } diff --git a/src/SFML/Window/OSX/SFWindow.m b/src/SFML/Window/OSX/SFWindow.m index 87a83f61..d2544364 100644 --- a/src/SFML/Window/OSX/SFWindow.m +++ b/src/SFML/Window/OSX/SFWindow.m @@ -55,6 +55,7 @@ // Consider overriding NSResponder -keyDown: message in a Cocoa view/window // that contains a SFML rendering area. Doing so will prevent a system // alert to be thrown every time the user presses a key. + (void)theEvent; } diff --git a/src/SFML/Window/OSX/SFWindowController.mm b/src/SFML/Window/OSX/SFWindowController.mm index 3b057a6c..c8f8b6e3 100644 --- a/src/SFML/Window/OSX/SFWindowController.mm +++ b/src/SFML/Window/OSX/SFWindowController.mm @@ -505,6 +505,8 @@ //////////////////////////////////////////////////////// -(BOOL)windowShouldClose:(id)sender { + (void)sender; + if (m_requester == 0) return YES; @@ -516,6 +518,8 @@ //////////////////////////////////////////////////////// -(void)windowDidBecomeKey:(NSNotification*)notification { + (void)notification; + // Send event. if (m_requester == 0) return; @@ -530,6 +534,8 @@ //////////////////////////////////////////////////////// -(void)windowDidResignKey:(NSNotification*)notification { + (void)notification; + // Send event. if (m_requester == 0) return;