• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting A Background Image On A Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Setting A Background Image On A Window (From: Neil <email@hidden>)

  • Prev by Date: Re: CoreData -- addPersistentStoreWithType crashing
  • Next by Date: Re: Starting Cocoa apps from the command line
  • Previous by thread: Setting A Background Image On A Window
  • Next by thread: Re: Setting A Background Image On A Window
  • Index(es):
    • Date
    • Thread