Re: Setting A Background Image On A Window
Re: Setting A Background Image On A Window
- Subject: Re: Setting A Background Image On A Window
- From: Brandon Walkin <email@hidden>
- Date: Wed, 10 Dec 2008 17:03:08 -0500
Try making an NSColor from your image using +colorWithPatternImage:,
and set that color object on the window using -setBackgroundColor:.
On 10-Dec-08, at 4:47 PM, Neil wrote:
I've googled around and poked at the documentation in Xcode, but I
can't seem to find any references to this. I'm trying to do
something like setBackgroundColor, but instead of picking a color, I
want to pick an image.
The end goal is to program an emulator for a small medical device
like an insulin pump; so the background of the window would be an
image of the device, and then I'd put some buttons and fields and
such on top.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden