/* MiniDockApplication.h created by fred on Wed 22-Sep-1999 */

#import <AppKit/AppKit.h>

//	This is the application object
//	I needed a special subclass for two reasons:
//	1) I don't want the dock to be hidable
//	2) I need flagsChanged events to be sent even if the application is not active
@interface MiniDockApplication : NSApplication
{	int itsLastModifierFlags;
}

	//	Start generating NSPeriodicEvents that will in turn generate eventuals NSFlagsChanged events. Beware that OpenStep supports only one source of NSPeriodicEvents at any time (what an implementation flaw! Could work around this by using NSTimers)
	//	aStartFlags is the state in which the caller expect the flags (ie: pass 0 if you want to generate a first flagsChanged: is there are modifiers already active)
- (void)startTrackingModifierFlags:(int)aStartFlags;

	//	Starts tracking without generating an eventual first modifier flags event
- (void)startTrackingModifierFlags;

	//	Stop generating NSPeriodicEvents to generate eventuals flagsChanged events
- (void)stopTrackingModifierFlags;

@end
