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

Progressbar does not survive hide/show


  • Subject: Progressbar does not survive hide/show
  • From: Trygve Inda <email@hidden>
  • Date: Mon, 04 Dec 2006 10:17:27 +0000
  • Thread-topic: Progressbar does not survive hide/show

Very crude code:

if (progressValue >= 0 && progressValue < 1000)
{
 [cacheProgress setHidden:NO];
 [cacheTextLabel setHidden:NO];

 [cacheTextLabel setStringValue:[[NSNumber numberWithDouble:progressValue]
stringValue]];

 [cacheProgress setDoubleValue:progressValue];
}
else
{
   [cacheProgress setHidden:YES];
   [cacheTextLabel setHidden:YES];
}

This works the first time thru, but the second time through, the text
updates with the proper values, but the NSProgressIndicator bar does not.

I tried adding setNeedsDisplay to it, but for some reason once the progress
bar has been hidden and reshown, it doe not draw updates.

Ideas?

Trygve


_______________________________________________

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

  • Follow-Ups:
    • Re: Progressbar does not survive hide/show
      • From: "Alan Smith" <email@hidden>
  • Prev by Date: Re: CFRunLookFindMode crash - revisited
  • Next by Date: Re: Core Data, using refreshObject:mergeChanges: to trim a portion of my object graph and regain memory...
  • Previous by thread: Re: CFRunLookFindMode crash - revisited
  • Next by thread: Re: Progressbar does not survive hide/show
  • Index(es):
    • Date
    • Thread