From: Kent Sutherland Date: Tue, 10 Dec 2002 17:39:03 +0000 (+0000) Subject: Removed the Views. X-Git-Tag: v1.0~262 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/09928b91bca7f78f40d544b59c5180ae893d6cf7 Removed the Views. --- diff --git a/MenuTunes.h b/MenuTunes.h index e48b9a6..389a826 100755 --- a/MenuTunes.h +++ b/MenuTunes.h @@ -22,7 +22,6 @@ { NSStatusItem *statusItem; NSMenu *menu; -// MenuTunesView *view; ComponentInstance asComponent; //Used in updating the menu automatically diff --git a/MenuTunes.m b/MenuTunes.m index 8c1b351..a17391f 100755 --- a/MenuTunes.m +++ b/MenuTunes.m @@ -6,7 +6,6 @@ Things to do: */ #import "MenuTunes.h" -// #import "MenuTunesView.h" #import "PreferencesController.h" #import "HotKeyCenter.h" #import "StatusWindowController.h" @@ -68,8 +67,6 @@ Things to do: // Below line of code is for creating builds for Beta Testers // [statusItem setToolTip:@"This Nontransferable Beta (Built on __DATE__) of iThink Software's MenuTunes is Registered to: Beta Tester (betatester@somedomain.com)."]; [statusItem retain]; -// view = [[MenuTunesView alloc] initWithFrame:[[statusItem view] frame]]; -// [statusItem setView:view]; } diff --git a/MenuTunesView.h b/MenuTunesView.h deleted file mode 100755 index 06658fe..0000000 --- a/MenuTunesView.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * MenuTunes - * MenuTunesView - * App Controller Class - * - * Original Author : Kent Sutherland - * Responsibility : Kent Sutherland - * Contributors : Matt Judy - * - * Copyright (c) 2002 iThink Software. - * All Rights Reserved - * - */ - - -#import - -@interface MenuTunesView : NSView -{ - NSImage *image; - NSImage *altImage; - BOOL mouseIsPressed; -} - -@end diff --git a/MenuTunesView.m b/MenuTunesView.m deleted file mode 100755 index 08e7ceb..0000000 --- a/MenuTunesView.m +++ /dev/null @@ -1,50 +0,0 @@ -#import "MenuTunesView.h" - -extern NSColor* _NSGetThemePartColorPattern(int, int, int); - -@implementation MenuTunesView - -- (id)initWithFrame:(NSRect)frame -{ - if ( (self = [super initWithFrame:frame]) ) - { - image = [NSImage imageNamed:@"menu"]; - altImage = [NSImage imageNamed:@"selected_image"]; - mouseIsPressed = NO; - } - return self; -} - -- (void)drawRect:(NSRect)rect -{ - NSImage *icon; - NSColor *background; - - if ( mouseIsPressed ) { - icon = altImage; - background = _NSGetThemePartColorPattern(44, 2, 0); - } else { - icon = image; - background = [NSColor clearColor]; - } - [background set]; - NSRectFill(rect); - [icon compositeToPoint:NSMakePoint(((rect.size.width - [icon size].width) / 2), 0) - operation:NSCompositeSourceOver]; -} - -- (void)mouseDown:(NSEvent *)event -{ - mouseIsPressed = YES; - [self setNeedsDisplay:YES]; - [super mouseDown:event]; -} - -- (void)mouseUp:(NSEvent *)event -{ - mouseIsPressed = NO; - [self setNeedsDisplay:YES]; - [super mouseUp:event]; -} - -@end