• 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: View swap using "push" animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: View swap using "push" animation


  • Subject: Re: View swap using "push" animation
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 10 Nov 2009 18:18:00 -0800
  • Thread-topic: View swap using "push" animation

On Mon, 9 Nov 2009 22:18:25 -0700, PCWiz <email@hidden> said:
>I want to swap out one view with another by pushing the old view aside
>to slide in a new view (the kCATransitionPush type). To use
>CoreAnimation I need to work with CALayers for my views. The problem
>is that attaching a backing layer to my window content view through
>setWantsLayer distorts everything in the view.
>
>I'm not sure if this has something to do with the fact that I'm using
>a subclass of NSWindow called MAAttachedWindow (http://mattgemmell.com/source
>), which is a HUD style transparent popup window of sorts that
>attaches to another object.
>
>I can provide screenshots of this distortion if needed.

Yes, please do.

Layers don't play well with every kind of built-in control. My solution (in
my JACTVocab application, which you can download) is to take a screenshot of
the "before" and "after" appearance of the window - so now I've got two
images - and temporarily interpose a second window in which I perform the
push transition from one image to the other. You might have to resort to
something like that. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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: View swap using "push" animation
      • From: Martin Hewitson <email@hidden>
  • Prev by Date: Re: Localization of System Preferences Pane
  • Next by Date: Re: questions on memory issues
  • Previous by thread: View swap using "push" animation
  • Next by thread: Re: View swap using "push" animation
  • Index(es):
    • Date
    • Thread