From 9371575088f72ee53aabc6e39285c41442dcfa46 Mon Sep 17 00:00:00 2001 From: Matthew Judy Date: Fri, 6 Dec 2002 03:37:03 +0000 Subject: [PATCH] Reverting MenuTunesView... lets try this again. --- MTApplication.h | 15 ++++++++++++++- MenuTunesView.h | 6 ++++-- MenuTunesView.m | 8 +++----- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/MTApplication.h b/MTApplication.h index 5692b39..0e98995 100755 --- a/MTApplication.h +++ b/MTApplication.h @@ -1,4 +1,17 @@ -/* MTApplication */ +/* + * MenuTunes + * MTApplication + * MenuTunes Application Subclass + * + * Original Author : Kent Sutherland + * Responsibility : Kent Sutherland + * + * Copyright (c) 2002 The iThink Group. + * All Rights Reserved + * + */ + + #import diff --git a/MenuTunesView.h b/MenuTunesView.h index 81bdf60..a66f794 100755 --- a/MenuTunesView.h +++ b/MenuTunesView.h @@ -1,7 +1,7 @@ /* * MenuTunes * MenuTunesView - * NSStatusItem Menu View + * App Controller Class * * Original Author : Kent Sutherland * Responsibility : Kent Sutherland @@ -17,7 +17,9 @@ @interface MenuTunesView : NSView { - NSDictionary *images; + NSImage *image; + NSImage *altImage; + NSImage *curImage; } @end diff --git a/MenuTunesView.m b/MenuTunesView.m index 05af9af..5bfba53 100755 --- a/MenuTunesView.m +++ b/MenuTunesView.m @@ -7,17 +7,15 @@ { 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]; } -- 2.20.1