• 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: Setting a shadow in -willDisplayCell causes CGContextSetStyle error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Getting a NSMenuItem to respond to two different key equivalents
  • Next by Date: Reading a binary file format?
  • Previous by thread: Re: Getting a NSMenuItem to respond to two different key equivalents
  • Next by thread: Reading a binary file format?
  • Index(es):
    • Date
    • Thread