-/* MTApplication */
+/*
+ * MenuTunes
+ * MTApplication
+ * MenuTunes Application Subclass
+ *
+ * Original Author : Kent Sutherland <ksuther@ithinksw.com>
+ * Responsibility : Kent Sutherland <ksuther@ithinksw.com>
+ *
+ * Copyright (c) 2002 The iThink Group.
+ * All Rights Reserved
+ *
+ */
+
+
#import <Cocoa/Cocoa.h>
/*
* MenuTunes
* MenuTunesView
- * NSStatusItem Menu View
+ * App Controller Class
*
* Original Author : Kent Sutherland <ksuther@ithinksw.com>
* Responsibility : Kent Sutherland <ksuther@ithinksw.com>
@interface MenuTunesView : NSView
{
- NSDictionary *images;
+ NSImage *image;
+ NSImage *altImage;
+ NSImage *curImage;
}
@end
{
if ( (self = [super initWithFrame:frame]) )
{
- images = [[NSDictionary alloc] initWithObjectsAndKeys:
- [NSImage imageNamed:@"menu"], @"normal",
- [NSImage imageNamed:@"selected_image"], @"selected",
- nil];
+ image = [NSImage imageNamed:@"menu"];
+ altImage = [NSImage imageNamed:@"selected_image"];
+ curImage = image;
}
return self;
}
- (void)drawRect:(NSRect)rect
{
- NSImage *image
[curImage compositeToPoint:NSMakePoint(0, 0) operation:NSCompositeSourceOver];
}