• 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: Embedding Custom NSView in NSScroller having strange effect on drawRect calls.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding Custom NSView in NSScroller having strange effect on drawRect calls.


  • Subject: Re: Embedding Custom NSView in NSScroller having strange effect on drawRect calls.
  • From: Billy Flatman <email@hidden>
  • Date: Sun, 28 Feb 2010 18:06:28 +0000

I've fixed the issue now by nesting my custom NSLayer in another layer which is also inside the NSScrollView. Not sure why this fixed things but every thing seems to be working ok now.

I  do have some some of the sublayers backed though.

Cheers for your response,

Billy.


On 26 Feb 2010, at 06:01, Michael Ash wrote:

> On Thu, Feb 25, 2010 at 3:00 AM, Billy Flatman <email@hidden> wrote:
>>>>> Hi all,
>>>>>
>>>>> I've written a custom view and done some optimisation of the drawing calls so only the exact areas that need redrawing are passed to the 'setNeedsDisplayInRect' function.
>>>>>
>>>>> All was working well, until I embedded my view into an NSScroller.
>>>>>
>>>>> Since then my custom view seems to be being invalidated by grid sections.
>>>>>
>>>>> I've included a link to some pics to try and better show.
>>>>>
>>>>> http://www.flickr.com/photos/47616059@N08/sets/72157623505127258/
>>>>>
>>>>> I added the green borders around the dirtyRect area to better show the problem.
>
> Is your view layer-backed, either directly or by being a subview of
> one which is explicitly layer-backed? If so, then it will
> automatically become backed by a CATiledLayer once it's embedded in a
> scroll view, which would cause exactly the sort of thing you're
> seeing.
>
> Mike
> _______________________________________________
>
> 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

_______________________________________________

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: 
 >Embedding Custom NSView in NSScroller having strange effect on drawRect calls. (From: Billy Flatman <email@hidden>)
 >Re: Embedding Custom NSView in NSScroller having strange effect on drawRect calls. (From: Michael Ash <email@hidden>)

  • Prev by Date: Connecting Outlet on Derived Array Controller
  • Next by Date: Re: Correct way to overide synthesized setter?
  • Previous by thread: Re: Embedding Custom NSView in NSScroller having strange effect on drawRect calls.
  • Next by thread: Setting parent window
  • Index(es):
    • Date
    • Thread