Hello,
3 images into the project: green.png, orange.png, and red.png (bullets).
In applicationWillFinishLaunching:
set greenBulletPath to (current application's NSBundle's mainBundle()'s pathForResource_ofType_("green", "png") as string)
set greenBullet to NSImage's alloc()'s initWithContentsOfFile_(greenBulletPath)
set orangeBulletPath to (current application's NSBundle's mainBundle()'s pathForResource_ofType_("orange", "png") as string)
set orangeBullet to NSImage's alloc()'s initWithContentsOfFile_(orangeBulletPath)
set redBulletPath to (current application's NSBundle's mainBundle()'s pathForResource_ofType_("red", "png") as string)
set redBullet to NSImage's alloc()'s initWithContentsOfFile_(redBulletPath)
For display the red image, for example:
myImageView's setImage_(redBullet)
I see there are already similar images in the Media Library named: NSStatusAvailable, NSStatusPartiallyAvailable, and NSStatusUnavailable but I don’t know how use them… Is it possible?
Thanks!