• 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: Progressbar does not survive hide/show
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Progressbar does not survive hide/show


  • Subject: Re: Progressbar does not survive hide/show
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 5 Dec 2006 14:12:15 +0000

On 5 Dec 2006, at 05:42, Trygve Inda wrote:

The code there is actually inside a Notification callback (and checks the
hidden state before changing it), so it is not really a loop, but I was able
to fix it by removing the hide method and replacing it with:


[cacheProgress startAnimation:self];    // shows it

[cacheProgress setDoubleValue:0];       // hides it
[cacheProgress stopAnimation:self];

Not sure why a normal hide fails, but there you go.

If I had to guess, I'd say it might be something to do with the animation. Hiding the view probably stops the animation, but showing it is unlikely to restart it.


Did you try just doing a -startAnimation: (and maybe setting its value) after showing it?

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Re: Progressbar does not survive hide/show (From: Trygve Inda <email@hidden>)

  • Prev by Date: Linking a model to an UndoManager with KVC/KVO
  • Next by Date: Re: Synchronizing Thread Execution
  • Previous by thread: Re: Progressbar does not survive hide/show
  • Next by thread: Re: Core Data, using refreshObject:mergeChanges: to trim a portion of my object graph and regain memory...
  • Index(es):
    • Date
    • Thread