objective c - Cocoa predefined resize mouse cursor? -


is resize mouse cursor used preview (e.g. when resizing shapes) system cursor?

enter image description here

it's not available directly method in nscursor doesn't there's private resource cursor in preview app's bundle either..

are there more system cursors other methods defined nscursor class..?

i think particularly interested in these class methods (preview.app dissasembly).

+[nscursor resizeangle45cursor]; calls +[nscursor _windowresizenortheastsouthwestcursor]; +[nscursor resizeangle135cursor]; calls +[nscursor _windowresizenorthwestsoutheastcursor]; 

according disassembly of appkit these private methods of nscursor.

you can try in code e.g.

 (void)mousedown:(nsevent *)theevent {   [[self window] disablecursorrects];    id cursor = [[nscursor class] performselector:@selector(_windowresizenortheastsouthwestcursor)];   [cursor push]; } 

there more undocumented cursors such as

+[nscursor _helpcursor]; +[nscursor _zoomincursor]; +[nscursor _zoomoutcursor]; 

and many many more enter image description here


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -