Uli's Web Site
[ Zathras.de - Uli's Web Site ]
Other Sites: Stories
Pix
Abi 2000
Stargate: Resurgence
Lost? Site Map!
 
 
     home | blog | moose | programming | articles >> blog

 Blog
 
 Archive
 
 Blog Topics
 

15 Most Recent [RSS]

 Less work through Xcode and shell scripts
2011-12-16 @600
 
 iTunesCantComplain released
2011-10-28 @954
 
 Dennis Ritchie deceased
2011-10-13 @359
 
 Thank you, Steve.
2011-10-06 @374
 
 Cocoa Text System everywhere...
2011-03-27 @788
 
 Blog migration
2011-01-29 @520
 
 All you need to know about the Mac keyboard
2010-08-09 @488
 
 Review: Sherlock
2010-07-31 @978
 
 Playing with Objective C on Debian
2010-05-08 @456
 
 Fruit vs. Obst
2010-05-08 @439
 
 Mixed-language ambiguity
2010-04-15 @994
 
 Uli's 12:07 AM Law
2010-04-12 @881
 
 Uli's 1:24 AM Law
2010-04-12 @874
 
 Uli's 6:28 AM Law
2010-04-12 @869
 
 Uli's 3:57 PM Law
2010-04-12 @867
 

More...

UKProgressPanel 0.2 released!

After UKSyntaxColoredTextDocument yesterday, today's another long-due update from the depths of the hard disk: UKProgressPanel 0.2. This adds some options to modify the look-and-feel of the progress list, and redoes the way threaded access is handled to make it actually work.

Reader Comments: (RSS Feed)
uwe writes:
Found a couple of minor things and a bug (to reproduce the bug use your test app and press the "test button" a couple of times to add tasks to the tasks panel. then stop a couple of them in the middle. bug should be obvious from there :-) ) Here are some diffs that fix that stuff regards uwe diff UKProgressPanelTask.m ~/Downloads/UKProgressPanel_02/UKProgressPanel/UKProgressPanelTask.m 108d107 < [inUse setName:@"UKProgressPanelTask.inUse"]; 137,138c136 < [inUse unlock]; < --- > 173c171 < -(void) animate: (id)sender { if( [inUse tryLock] ) { UK_DEBUG_PRINT(@"%lx: animating", self); NSProgressIndicator* pb = [progressBar copyMainThreadProxy]; [pb startAnimation: sender]; [pb display]; [pb release]; [inUse unlock]; } } --- > -(void) animate: (id)sender { if( [inUse tryLock] ) { UK_DEBUG_PRINT(@"%lx: animating", self); NSProgressIndicator* pb = [progressBar copyMainThreadProxy]; [pb animate: sender]; [pb display]; [pb release]; [inUse unlock]; } } diff UKProgressPanel.m ~/Downloads/UKProgressPanel_02/UKProgressPanel/UKProgressPanel.m 227c227,228 < NSUInteger pos = [subs indexOfObject: elementsView]; --- > unsigned int pos = [subs indexOfObject: elementsView]; > NSEnumerator* elEnum = [subs objectEnumerator]; 228a230,231 > unsigned int x; > NSView* currElemView = nil; 240,250c243,253 < < subs = [taskContentView subviews]; < NSUInteger i; < < for (i = pos; i < [subs count]; i++) { < NSView *currElemView = [subs objectAtIndex:i]; < < NSPoint currOrigin = [currElemView frame].origin; < currOrigin.y -= sizeGone.height; < [currElemView setFrameOrigin: currOrigin]; < [currElemView setNeedsDisplay:YES]; --- > > // Move down elements above the one we're removing: > for( x = 0; currElemView = [elEnum nextObject]; x++ ) > { > if( x > pos ) > { > NSPoint currOrigin = [currElemView frame].origin; > currOrigin.y -= sizeGone.height; > [currElemView setFrameOrigin: currOrigin]; > [currElemView setNeedsDisplay:YES]; > }
Or E-Mail Uli privately.

 
Created: 2007-03-12 @241 Last change: 2018-01-17 @878 | Home | Admin | Edit
© Copyright 2003-2018 by M. Uli Kusterer, all rights reserved.