X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/32440a12defde03dcc52e42cff4aa6300d7d96fb..5cf6107f7fb51538c33d2839a2485493a7446c43:/ITStatusItem.h diff --git a/ITStatusItem.h b/ITStatusItem.h index 382b48c..4116107 100755 --- a/ITStatusItem.h +++ b/ITStatusItem.h @@ -4,20 +4,23 @@ * NSStatusItem subclass which reduces suckage * * Original Author : Joseph Spiros + * Original Author : Matt Judy * Responsibility : Matt Judy * Responsibility : Joseph Spiros * - * Copyright (c) 2002 iThink Software. + * Copyright (c) 2002 - 2003 iThink Software. * All Rights Reserved * */ /* - * This subclass does 3 things: + * This subclass does 4 things to approximate NSMenuExtra's functionality: * * 1. Makes the status item smarter about highlighting. - * 2. Allows you to set an inverted (alternate) image. + * 2. Allows you to set an alternate (inverted) image. * 3. Eliminates the pre-Jaguar shadow behind a normal status item. + * 4. If you use an image AND title, the text will be made slightly smaller + * to resemble the visual interface of an NSMenuExtra. * * Note: In order to have the shadow not overlap the bottom of the * menubar, Apple moves the image up one pixel. Since that shadow is @@ -25,6 +28,7 @@ * */ + #import @@ -41,9 +45,5 @@ - (NSImage*) alternateImage; - (void) setAlternateImage:(NSImage*)image; -// The following have been redefined as to supply compliance with Jaguar (10.2)'s MenuExtras that have both titles and images. Continue to use them as though you would on a NSStatusItem, everything will be done for you automatically. -- (void) setImage:(NSImage*)image; -- (NSString*) title; -- (void) setTitle:(NSString*)title; @end