Why my Custom NSCollectionView drawRect is not being called when acceptinLayers?
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