In Obj-C, the boolean data type is BOOL, not bool. This seems to be the only class...
authorMatthew Judy <mjudy@ithinksw.com>
Fri, 21 Feb 2003 15:18:40 +0000 (15:18 +0000)
committerMatthew Judy <mjudy@ithinksw.com>
Fri, 21 Feb 2003 15:18:40 +0000 (15:18 +0000)
MenuTunes.h
MenuTunes.m

index d4807fd..304b34d 100755 (executable)
     //Used in updating the menu automatically
     NSTimer *refreshTimer;
     int trackInfoIndex, lastSongIndex;
-    bool isPlayingRadio;
+    BOOL isPlayingRadio;
     
-    bool isAppRunning;
-    bool didHaveAlbumName, didHaveArtistName; //Helper variable for creating the menu
+    BOOL isAppRunning;
+    BOOL didHaveAlbumName, didHaveArtistName; //Helper variable for creating the menu
     
     //For upcoming songs
     NSMenuItem *upcomingSongsItem;
@@ -54,6 +54,7 @@
     PreferencesController *prefsController;
     StatusWindowController *statusController; //Shows track info and upcoming songs.
 }
+
 - (void)registerDefaultsIfNeeded;
 - (void)rebuildMenu;
 - (void)clearHotKeys;
index cf5801b..1dd7df6 100755 (executable)
@@ -126,7 +126,7 @@ Things to do:
 {
     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
     if (![defaults objectForKey:@"menu"]) {
-        bool found = NO;
+        BOOL found = NO;
         NSMutableDictionary *loginwindow;
         NSMutableArray *loginarray;
         int i;
@@ -583,7 +583,7 @@ Things to do:
         int playlist = [currentRemote currentPlaylistIndex];
         
         if (trackPlayingIndex != lastSongIndex) {
-            bool wasPlayingRadio = isPlayingRadio;
+            BOOL wasPlayingRadio = isPlayingRadio;
             isPlayingRadio = [[currentRemote classOfPlaylistAtIndex:playlist] isEqualToString:@"radio tuner playlist"];
             if (isPlayingRadio && !wasPlayingRadio) {
                 int i;
@@ -603,7 +603,7 @@ Things to do:
         else
         {
             if (playlist != [currentRemote currentPlaylistIndex]) {
-                bool wasPlayingRadio = isPlayingRadio;
+                BOOL wasPlayingRadio = isPlayingRadio;
                 isPlayingRadio = [[currentRemote classOfPlaylistAtIndex:playlist] isEqualToString:@"radio tuner playlist"];
                 if (isPlayingRadio && !wasPlayingRadio) {
                     int i;