mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Cocoa: Fix undeclared selector warnings
This commit is contained in:
parent
73a8ebb691
commit
28773a069e
@ -1617,13 +1617,13 @@ int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape)
|
|||||||
|
|
||||||
// HACK: Try to use a private message
|
// HACK: Try to use a private message
|
||||||
if (shape == GLFW_RESIZE_EW_CURSOR)
|
if (shape == GLFW_RESIZE_EW_CURSOR)
|
||||||
cursorSelector = @selector(_windowResizeEastWestCursor);
|
cursorSelector = NSSelectorFromString(@"_windowResizeEastWestCursor");
|
||||||
else if (shape == GLFW_RESIZE_NS_CURSOR)
|
else if (shape == GLFW_RESIZE_NS_CURSOR)
|
||||||
cursorSelector = @selector(_windowResizeNorthSouthCursor);
|
cursorSelector = NSSelectorFromString(@"_windowResizeNorthSouthCursor");
|
||||||
else if (shape == GLFW_RESIZE_NWSE_CURSOR)
|
else if (shape == GLFW_RESIZE_NWSE_CURSOR)
|
||||||
cursorSelector = @selector(_windowResizeNorthWestSouthEastCursor);
|
cursorSelector = NSSelectorFromString(@"_windowResizeNorthWestSouthEastCursor");
|
||||||
else if (shape == GLFW_RESIZE_NESW_CURSOR)
|
else if (shape == GLFW_RESIZE_NESW_CURSOR)
|
||||||
cursorSelector = @selector(_windowResizeNorthEastSouthWestCursor);
|
cursorSelector = NSSelectorFromString(@"_windowResizeNorthEastSouthWestCursor");
|
||||||
|
|
||||||
if (cursorSelector && [NSCursor respondsToSelector:cursorSelector])
|
if (cursorSelector && [NSCursor respondsToSelector:cursorSelector])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user