How can I update NSCursor whenever I need? I implemented resetCursorRects method. In resetCursorRects I create image with needed size (size depends on slider value in my app) and make cursor with that image. So if my slider, witch declares needed cursor size, is being changed, I need my cursor to be updated. So if thinking logically, calling [self resetCursorRects] should work, but it doesn’t. After changing slider value and for example resizing window, cursor updates. But why it doesn’t updates when I try to call it?
How can I update NSCursor whenever I need? I implemented resetCursorRects method. In resetCursorRects
Share
For this purpose you should implement
in your .h file and something like:
and use these methods in something like:
or wherever you want.
Don’t forget to implement Enum with your cursor and to load cursors in your init method!
Hope this helps.