--- /dev/null
+POSITIONS:
+
++-------------------+
+| A B C |
+| |
+| D E F |
+| |
+| G H I |
++-------------------+
+
+
+EFFECTS:
+
+0-) None
+1-) Dissolve
+2-) Slide Vertically
+3-) Slide Horizontally
+4-) Pivot
+
+
+MATCHES
+
+Pos. | Possible Effects + = Maybe (Future)
+-----+-------------------- - = Not Supported
+ A | 0 1 2 3 4
+ B | 0 1 2 - +
+ C | 0 1 2 3 4
+ D | 0 1 - 3 +
+ E | 0 1 - - -
+ F | 0 1 - 3 +
+ G | 0 1 2 3 4
+ H | 0 1 2 - +
+ I | 0 1 2 3 4
+
+
@interface MenuTunes : NSObject
{
- ITStatusItem *statusItem;
- NSMenu *menu;
- ITMTRemote *currentRemote;
+ ITStatusItem *statusItem;
+ NSMenu *menu;
+ ITMTRemote *currentRemote;
NSMutableArray *remoteArray;
//Used in updating the menu automatically
NSTimer *refreshTimer;
- int trackInfoIndex, lastSongIndex, lastPlaylistIndex;
- BOOL isPlayingRadio;
+ int trackInfoIndex;
+ int lastSongIndex;
+ int lastPlaylistIndex;
+ BOOL isPlayingRadio;
BOOL isAppRunning;
- BOOL didHaveAlbumName, didHaveArtistName; //Helper variable for creating the menu
+ BOOL didHaveAlbumName;
+ BOOL didHaveArtistName; //Helper variable for creating the menu
//For upcoming songs
NSMenuItem *upcomingSongsItem;
- NSMenu *upcomingSongsMenu;
+ NSMenu *upcomingSongsMenu;
//For playlist selection
NSMenuItem *playlistItem;
- NSMenu *playlistMenu;
+ NSMenu *playlistMenu;
//For EQ sets
NSMenuItem *eqItem;
- NSMenu *eqMenu;
+ NSMenu *eqMenu;
NSMenuItem *playPauseMenuItem; //Toggle between 'Play' and 'Pause'
[statusItem setMenu:menu];
// Below line of code is for creating builds for Beta Testers
// [statusItem setToolTip:@[NSString stringWithFormat:@"This Nontransferable Beta (Built on %s) of iThink Software's MenuTunes is Registered to: Beta Tester (betatester@somedomain.com).",__DATE__]];
+ [statusWindow orderFront:self]; //DEBUG
}
- (ITMTRemote *)loadRemote
}
}
-// if ( [remoteArray count] > 0 ) {
+// if ( [remoteArray count] > 0 ) { // UNCOMMENT WHEN WE HAVE > 1 PLUGIN
// if ( [remoteArray count] > 1 ) {
// [remoteArray sortUsingSelector:@selector(sortAlpha:)];
// }
// [self loadModuleAccessUI]; //Comment out this line to disable remote visibility
// }
}
- NSLog(@"%@", [remoteArray objectAtIndex:0]);
+// NSLog(@"%@", [remoteArray objectAtIndex:0]); //DEBUG
return [remoteArray objectAtIndex:0];
}
- (BOOL)isAppRunning
{
NSArray *apps = [[NSWorkspace sharedWorkspace] launchedApplications];
- int i,count = [apps count];
+ int i;
+ int count = [apps count];
for (i = 0; i < count; i++) {
if ([[[apps objectAtIndex:i] objectForKey:@"NSApplicationName"]
{
NSArray *apps = [[NSWorkspace sharedWorkspace] launchedApplications];
ProcessSerialNumber number;
- int i, count = [apps count];
+ int i;
+ int count = [apps count];
number.highLongOfPSN = kNoProcess;