Coderama
Coderama

Reputation: 11362

osx application red orange green icons

Does anyone know where to get the OSX red orange green icons that appear on the top left of an OSX application?

I want to use these icons to represent different states but do not know where to find them.

Upvotes: 2

Views: 514

Answers (3)

L1fescape
L1fescape

Reputation: 81

[myImageView setImage:[NSImage imageNamed:NSImageNameStatusAvailable]]];
[myImageView setImage:[NSImage imageNamed:NSImageNameStatusPartiallyAvailable]]];
[myImageView setImage:[NSImage imageNamed:NSImageNameStatusUnavailable]]];
[myImageView setImage:[NSImage imageNamed:NSImageNameStatusNone]]];

Upvotes: 0

CRD
CRD

Reputation: 53010

You can obtain these from NSImage's imageNamed: method passing in the constants NSImageNameStatusAvailable], NSImageNameStatusPartiallyAvailable], NSImageNameStatusUnavailable], NSImageNameStatusNone - for green, amber, red and white.

Upvotes: 3

Jim Merkel
Jim Merkel

Reputation: 352

Do you mean the red, yellow, and green buttons in most windows? I can't quote the OSX Human Interface guidelines chapter and verse off the top of my head, but generally it says that you shouldn't reuse Apple defined controls for another (different) function. So you should probably come up with a different control for this.

Upvotes: 0

Related Questions