• 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
Problems with a Layer backed NSView in a NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with a Layer backed NSView in a NSScrollView


  • Subject: Problems with a Layer backed NSView in a NSScrollView
  • From: Moray Taylor <email@hidden>
  • Date: Thu, 19 Jun 2008 15:38:03 +0000 (GMT)

Hi there!

I've been tearing my hair out trying to figure this out, so hopefully someone will take pity!

Basicaly, I've a CALayer-backed custom view, which works pretty great, I use a transform to flip it, and it works fine, the problem happens when I put it in a NSScrollView....

If I put it in the scrollview, and set the scrollview's setWantsLayer to YES,  then it works good, very fast and smooth scrolling, BUT, it's completely upside down!

If I setWantsLayer to NO, then it's the right way up, but jerky and generally doesn't work (i.e. the scroll bar doesn't do anything in the scrollview)

I've tried flipping and unflipping the view, applying a transform to the CALayer (I had a transform to begin with, removed it, no difference), nothing I do will flip it back!

Please help!

Thanks

Moray


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________

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: [ANN] NYC CocoaHeads meeting Thu 6/19
  • Next by Date: Re: Prevent Asynchronous operation of beginSheetModalForWindow
  • Previous by thread: Re: Add item to NSSavePanel sidebar
  • Next by thread: Re: Problems with a Layer backed NSView in a NSScrollView
  • Index(es):
    • Date
    • Thread