Ryan
Ryan

Reputation: 183

Mac Cursor Folder

I've been researching for a couple hours now, and I want to find my Mac system default cursor. Not any mouseover, I just want the default cursor. I am running one of the older versions of Mac, which is: 10.4.11;

I was told that the cursors are in here:

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HiServices.framework/Versions/A/Resources/cursors

But, there seems to be no Cursors folder in

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HiServices.framework/Versions/A/Resources/  

Please help. I want a smoothy. :P

Upvotes: 15

Views: 10622

Answers (3)

Abhi Beckert
Abhi Beckert

Reputation: 33379

You can extract the image programatically:

//: Playground - noun: a place where people can play

import Cocoa

let cursor = NSCursor.arrowCursor().image.TIFFRepresentation

let searchPaths = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true)

let documentsPath = searchPaths[0] as! String
let savePath = documentsPath.stringByAppendingPathComponent("cursor.tiff")

cursor?.writeToFile(savePath, atomically: true)

The result is a tiff with 4 different versions of the cursor, ranging from 20x24 pixels (non-retina default) to 200x240 pixels. Using Preview.app, you can grab each individual size and copy/paste into a new document, saving each as a png.

Or just grab one I prepared earlier: https://dl.dropboxusercontent.com/u/147461/mac-cursor/mac-cursor.zip

Upvotes: 3

Eastonium
Eastonium

Reputation: 81

After doing a bit of digging, I found this:

/System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/Resources/EFIResourceBuilder.bundle/Contents/Resources/[email protected]

Hope this is what you were looking for.

Upvotes: 8

Kevin Grant
Kevin Grant

Reputation: 5431

The default arrow needs to be displayed at times when the rest of the system may not be available (e.g. at boot) so it is probably stored in a special place such as in the hardware itself.

The closest image to the default cursor is probably the "contextual menu", here:

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Resources/cursors/contextualmenu/cursor_1only_.png

With some minor edits you could probably turn this image into a whole arrow picture.

Most other cursors have images in WebKit, here:

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

Upvotes: 7

Related Questions