Re: Setting a shadow in -willDisplayCell causes CGContextSetStyle error?
Re: Setting a shadow in -willDisplayCell causes CGContextSetStyle error?
- Subject: Re: Setting a shadow in -willDisplayCell causes CGContextSetStyle error?
- From: Keith Blount <email@hidden>
- Date: Thu, 11 Oct 2007 16:13:26 -0700 (PDT)
Many thanks for the answer - much appreciated. And
d'oh! That makes sense. Serves me right for copying
and pasting off CocoaDev in this case without thinking
about it too much. Your code fixes everything.
Thanks again,
Keith
--- ORIGINAL MESSAGE ---
You never can't assume willDisplayCell: will be called
inside a drawing
context (it's "willDisplay:", not "willDraw:" method,
after all ;-) ).
If you want to add niceties to your cells, you should:
1) subclass the NSCell classes you use and use them as
your cell class
prototype:
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC
_______________________________________________
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