• 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
Why my Custom NSCollectionView drawRect is not being called when acceptinLayers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why my Custom NSCollectionView drawRect is not being called when acceptinLayers?


  • Subject: Why my Custom NSCollectionView drawRect is not being called when acceptinLayers?
  • From: Gustavo Pizano <email@hidden>
  • Date: Thu, 17 Jun 2010 14:19:02 +0200

Hello all.

I have subclasses NSCollectionView to be able to draw a custom background gradient.

When that collectoin view doesn't accepts layers or its parent view neither, the gradient its drawn, the drawRect method its called, but if the collection view accepts layer or its parent does, then the drawRect its not called, and I need to draw that gradient bacground.

I dunno if its because its backed-layer view, in which case what can I do have the parent view accept layers and at the same time the collection's view background will be drawn properly?

Thanks for the help

Gustavo
 PS. the CollectionsViewItems are drawn properly.



_______________________________________________

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: Add button to Finder
  • Next by Date: NSLog and va_list
  • Previous by thread: Always Notified when Key is Released
  • Next by thread: NSLog and va_list
  • Index(es):
    • Date
    • Thread