mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed unused parameter warnings
This commit is contained in:
parent
49f2a76d93
commit
0d6ddde07f
@ -239,6 +239,7 @@
|
||||
////////////////////////////////////////////////////////
|
||||
-(void)bringAllToFront:(id)sender
|
||||
{
|
||||
(void)sender;
|
||||
[[NSApp windows] makeObjectsPerformSelector:@selector(orderFrontRegardless)];
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@
|
||||
-(void)doCommandBySelector:(SEL)sel
|
||||
{
|
||||
// Just do nothing, to prevent sound alerts
|
||||
(void)sel;
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user