• 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: NSScroller in layer backed view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScroller in layer backed view


  • Subject: Re: NSScroller in layer backed view
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 03 Apr 2012 13:41:54 +0100

On 3 Apr 2012, at 08:47, Ryan Joseph wrote:

> I've just started using CoreAnimation for fading views and simple things like that but now I've run across a problem with NSScroller.
>
> In a view which is layer backed (setWantsLayer is on) I have a NSScrollView with a custom NSScroller subclass which performs drawing in drawRect:. When the root views setWantsLayer is on the drawRect: method of the NSScroller subclass is never called. The docs did say drawRect: will not be invoked in layer backed views but I'm confused because another NSView subclass in the same layer backed view is getting drawRect: invoked.
Are you sure that you haven't set any layers explicitly?
-drawRect should be called on all subviews when -wantsLayer is true.
When you create a layer hosting view (that is, assign a layer directly to the view) then -drawRect: will not be called.

Regards

Jonathan Mitchell
Mugginsoft LLP


_______________________________________________

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: 
 >NSScroller in layer backed view (From: Ryan Joseph <email@hidden>)

  • Prev by Date: Re: iOS App - crash when clearing a UITableDetailView
  • Next by Date: Re: iOS App - crash when clearing a UITableDetailView
  • Previous by thread: NSScroller in layer backed view
  • Next by thread: iOS App - crash when clearing a UITableDetailView
  • Index(es):
    • Date
    • Thread