• 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: -[NSColor setBackgroundColor:] not working in 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSColor setBackgroundColor:] not working in 10.6


  • Subject: Re: -[NSColor setBackgroundColor:] not working in 10.6
  • From: Manfred Schwind <email@hidden>
  • Date: Fri, 8 Oct 2010 08:46:00 +0200

> - (void)drawRect:(NSRect)rect {
> 	[...]
> 	[img drawInRect:rect ...];
> }

Not related to your original problem, but please note that the NSRect passed to drawRect is the dirty area that needs to be redrawn. In many cases this matches self.bounds, but not always. So using this rect as position to draw your image is a bug in this case and might result in unexpected drawing errors.

Regards,
Mani
--
http://mani.de - friendly software
iVolume - listen to music hands-free
LittleSecrets - the encrypted notepad
Sahara - sand in your pocket
Watchdog - baffle the curious

_______________________________________________

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: 
 >-[NSColor setBackgroundColor:] not working in 10.6 (From: Hamish Sanderson <email@hidden>)

  • Prev by Date: Re: Encoding of property_getName() result?
  • Next by Date: Re: init returns nil or raises exception?
  • Previous by thread: Re: -[NSImage setBackgroundColor:] not working in 10.6
  • Next by thread: Re: -[NSColor setBackgroundColor:] not working in 10.6
  • Index(es):
    • Date
    • Thread