• 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
CATransition + NSView mask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CATransition + NSView mask


  • Subject: CATransition + NSView mask
  • From: Evan M <email@hidden>
  • Date: Sun, 9 Aug 2009 09:54:44 -0400

I have a simple view transition, and am using a slide transition in combination with NSView's replaceSubview: with: method to swap a view's subviews. The problem I'm running into with this transition in particular is that it doesn't clip to the parent view. The views that are being swapped in are only clipping at the bounds of the window and not the view and the animation looks bad because there are other buttons, and textfields that are getting covered, etc.

I see that CALayer has the maskToBounds attribute that clips the content of the layer. I can't find anything analogous for an NSView or anything associated with the animator proxy that fits.

Anyone else run in to this problem?

--
Evan
_______________________________________________

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


  • Follow-Ups:
    • Re: CATransition + NSView mask
      • From: Sean Kline <email@hidden>
  • Prev by Date: Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.
  • Next by Date: Trouble with event taps...
  • Previous by thread: Re: Color with pattern image
  • Next by thread: Re: CATransition + NSView mask
  • Index(es):
    • Date
    • Thread