| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Here's how I do it in FileView (one of the many "everybody else" apps)
You need to make a copy of the image, using NSCompositeCopy, then do a rectFill over the top of it using semi-transparent black (or any other color if you want to tint it) using NSCompositeSourceAtop, then use that copy of the image just as you would the original.
Here's my code with some other stuff hacked out of it, but I think it should still compile. (note that I cache that image alloc/init in a singleton, but i just left it in here to make the example simpler)
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.