Diagonal resizing mouse pointer [closed]

2019-08-23 09:57发布

问题:

I am looking for the (hidden) mouse shapes which had been available with ObjC (see SO question). The Swift NSCursor offers none of those cursors you find for resizing standard windows?!

For now I'm just looking for the diagonal resizing mouse shapes. If the others were available it would be nice to know too.

回答1:

The cursor you describe is not supported by OS X. If you want a cursor like that, you'll have to create an image of it yourself and use the documentation already provided to create a cursor with that image WebKit contains images that look exactly the same as the cursors used by the system, in the following directory:

/System/Library/Frameworks/WebKit.framework/Versions/Current/Frameworks/WebCore.framework/Resources/