• 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: transparent window and transparent button problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transparent window and transparent button problems


  • Subject: Re: transparent window and transparent button problems
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 28 Nov 2005 22:17:19 +0100

Am 28.11.2005 um 22:02 schrieb David Borland:
My problem was that the rectangle being passed into the view was not always the whole view. Sometimes it was just the area under the buttons being passed in, but I was treating it as if it was my entire window view, so I'd draw a rounded rectangle in that rect, giving the effect you talk about.

I fixed mine for the time being by getting the frame of the view and drawing that instead of using the rect that was passed in. I plan on changing my code eventually so that it will draw the correct thing when a smaller rect is passed in, but I won't do that till I get the view to look exactly how I want.

If it surprised you that this rect isn't the same as the frame/ bounds rects, you may want to re-read the following page:


http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaPerformance/Articles/CustomViews.html

In particular the section labeled "draw minimally", and its first and third paragraphs.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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
References: 
 >transparent window and transparent button problems (From: Olivier Destrebecq <email@hidden>)
 >Re: transparent window and transparent button problems (From: David Borland <email@hidden>)

  • Prev by Date: Re: adding Columns to a NSTableView with bindings?
  • Next by Date: Re: Is Apple's singleton sample code correct?
  • Previous by thread: Re: transparent window and transparent button problems
  • Next by thread: Re: transparent window and transparent button problems
  • Index(es):
    • Date
    • Thread