• 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
Window Resize with Animator Proxy: Window Contents Jump Around
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Window Resize with Animator Proxy: Window Contents Jump Around


  • Subject: Window Resize with Animator Proxy: Window Contents Jump Around
  • From: Marc Liyanage <email@hidden>
  • Date: Mon, 13 Jul 2009 13:08:05 +0200


I am trying to resize a window with an animation using the NSAnimatablePropertyContainer animator proxy mechanism. The views have the "Wants CA Layer" option set in IB.


I use this code:

	NSRect frame = window.frame;
	frame.size.height += delta;
	frame.origin.y -= delta;
	[[window animator] setFrame:frame display:YES];

The problem is that during the animation, the window contens jump down briefly when the window grows, and up when it shrinks. It does not do this when I do not reset the origin by commenting out this line:

//	frame.origin.y -= delta;

But then the window grows upward which is not what I want.

I made a screen video here:

    http://www.youtube.com/watch?v=NARKujk2jrg


It also works if I don’t enable the CA layer backing in IB, but I need that because I am going to fade a subview at the same time as I resize the window. Without CA layers I can only hide and show the subview with a hard transition, but I want to fade it.


Is there something I should do differently or is this a known issue?


_______________________________________________

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: Window Resize with Animator Proxy: Window Contents Jump Around
      • From: Peter N Lewis <email@hidden>
    • Re: Window Resize with Animator Proxy: Window Contents Jump Around
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Solved: Implementing previous, next, first, last controls in Core Data applications
  • Next by Date: Re: NSError in NSDocument readFromURL
  • Previous by thread: Re: NSError in NSDocument readFromURL
  • Next by thread: Re: Window Resize with Animator Proxy: Window Contents Jump Around
  • Index(es):
    • Date
    • Thread