Re: Custom view background texture/color
Re: Custom view background texture/color
- Subject: Re: Custom view background texture/color
- From: Artemiy Pavlov <email@hidden>
- Date: Sun, 24 Sep 2006 21:40:44 +0300
Hello and thanks for your reply!
I will check that doc out, but one thing I am trying to do now
doesn't seem to work. In my XCode project, I added a PNG image, and
then dragged it onto the Interface Builder. I can add this image to
my GUI and it will work well, however, if I set this image back
(Layout -> Bring to back), it appears as a background image in the
Interface Builder with all GUI elements on top, but in the actual
application this image covers all GUI elements (i.e. all you can see
in the GUI is this image).
Is it possible to simply make a custom background image for the GUI
right from the Interface Builder?
Thanks again very much,
Artemiy.
On 24 Sep 2006, at 4:11 PM, I. Savant wrote:
Artemiy:
You will need to use your own custom NSView subclass and override
the -drawRect: method. There you will set the color you want and
fill the view's bounds with it.
This will get you started:
http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaDrawingGuide/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden