• 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
View disappears with NSViewAnimation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

View disappears with NSViewAnimation


  • Subject: View disappears with NSViewAnimation
  • From: August Trometer <email@hidden>
  • Date: Tue, 11 Jul 2006 11:12:29 -0400

Hello!

I have two views, side by side. One is the main "content" of the window, the other is a "notes" bar.

I am using NSViewAnimation to open and close the Notes section. To close the Notes, I set the Notes view frame to 0. When I open it, I set it to 150.

If I use setFrame: to open and close the Notes everything works fine. When I use NSViewAnimation, however, things get screwy. I can close the Notes just fine, but when I open them, the view doesn't appear. I've NSLogged the before/after frame width and NSViewAnimation seems to be doing its job, but the view simply doesn't show.

After messing around with it for a while, I noticed that if I set the "closed" width to 1 instead of 0, everything works fine!

Is this a bug or a known issue? Is there a workaround? Right now I'm setting the closed width to .00001 -- it works, but it seems like a hack. Any ideas?


Thanks!

August


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: View disappears with NSViewAnimation
      • From: Ryan Britton <email@hidden>
  • Prev by Date: adding audio to a movie file
  • Next by Date: copy vs mutableCopy?
  • Previous by thread: Re: adding audio to a movie file
  • Next by thread: Re: View disappears with NSViewAnimation
  • Index(es):
    • Date
    • Thread