File: programming/cocoa/UKDockProgressIndicator.zip/UKDockProgressIndicator/UKDockProgressIndicator.h


//
//  UKDockProgressIndicator.h
//  Doublette
//
//  Created by Uli Kusterer on 30.04.05.
//  Copyright 2005 M. Uli Kusterer. All rights reserved.
//
 
// -----------------------------------------------------------------------------
//	Headers:
// -----------------------------------------------------------------------------
 
#import <Cocoa/Cocoa.h>
 
 
/* A class that displays a determinate progress indicator (progress bar)
    on top of the app's icon in the dock. Use it just like an NSProgressIndicator.
    You can even have it call through to another progress indicator if desired. */
 
// -----------------------------------------------------------------------------
//	Class Declarationâ:
// -----------------------------------------------------------------------------
 
@interface UKDockProgressIndicator : NSObject
{
    IBOutlet NSProgressIndicator*   progress;		// A progress indicator view to call through to.
    double                          max;
    double                          min;
    double                          current;
}
 
// NSProgressIndicator compatibility stuff:
//  These forward to "progress" if you've hooked that up in IB.
-(void)     setMinValue: (double)mn;
-(double)   minValue;
 
-(void)     setMaxValue: (double)mn;
-(double)   maxValue;
 
-(void)     setDoubleValue: (double)mn;
-(double)   doubleValue;
 
-(void)     setNeedsDisplay: (BOOL)mn;
-(void)     display;
 
-(void)     setHidden: (BOOL)flag;
-(BOOL)     isHidden;
 
// private:
-(void)     updateDockTile;
 
@end

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.