Re: textured windows
Re: textured windows
- Subject: Re: textured windows
- From: "Clark S. Cox III" <email@hidden>
- Date: Thu, 05 Sep 2002 08:26:12 -0400
On 09/04/2002 18:16, "Nick Hristov" <email@hidden> wrote:
>
Hello.
>
>
I am sorry if this question has been asked before: I have a textured
>
window and a view inside. How do I force the NSView to draw its
>
background?
>
>
Override
>
- (BOOL) isOpaque; ??
>
>
Thank you for your time.
If the view truly is opaque (i.e. The drawRect: method draws something
in the entire view), then yes, overriding isOpaque to return YES is a good
idea, however NSView doesn't do any drawing on it's own; if you want to draw
a background in the view, you have to do it yourself in your overridden
drawRect:.
--
http://homepage.mac.com/clarkcox3/
Clark S. Cox III
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.