• 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: textured windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >textured windows (From: Nick Hristov <email@hidden>)

  • Prev by Date: Re: Request for Guidance
  • Next by Date: Issue with [NSImage drawAtPoint:fromRect:etc:...]
  • Previous by thread: textured windows
  • Next by thread: ftp mounting
  • Index(es):
    • Date
    • Thread