• 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
MaxOS 10.7 full-screen animation corrupts my UI --- how to avoid?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MaxOS 10.7 full-screen animation corrupts my UI --- how to avoid?


  • Subject: MaxOS 10.7 full-screen animation corrupts my UI --- how to avoid?
  • From: Motti Shneor <email@hidden>
  • Date: Tue, 10 Jul 2012 17:39:26 +0300

Hello everyone.

My main window restricts the user to a range of window sizes, using

[myWindow setContentsMaxSize:maxSize]
[myWindow setContentsMinSize:minSize]

The minimum size prevents corruption of some complicated views loaded from several nib files.

When the user presses "fullscreen" button, Lion starts an animation that will

1. shrink the window below its current size,
2. in several steps, increase its size until it reaches the full-screen representation size.

If the window started in its minimal size, this animation will SHRINK IT BELOW THE MINIMAL size and will corrupt my UI beyond repair. My views are receiving setFrameSize: with unsupported size.

Can this be considered a Cocoa bug?
Am I doing something wrong?
Can I somehow prevent the corruption, without replacing the OS standard animation for full-screen?
Why doesn't the animation base on a "snapshot" of the window contents, instead of live-resizing of the whole view-hierarchy  throughout the animation?
Can someone "spare" a few lines of code that will do a simple linear resizing animation that will NOT go below minimum?

Any advice will be greatly appreciated.
Thanks.

Motti Shneor
---------------------------------------------------------
Ceterum censeo Microsoftinem delendam esse




_______________________________________________

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: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?
      • From: Steve Bird <email@hidden>
  • Prev by Date: Re: "Capturing 'self' strongly in this block is likely to lead to a retain cycle"
  • Next by Date: Re: Bottom-edge constraint not enforced in IB but is in runtime?
  • Previous by thread: Re: "Capturing 'self' strongly in this block is likely to lead to a retain cycle"
  • Next by thread: Re: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?
  • Index(es):
    • Date
    • Thread