[BACK]Return to MyEnvironment.m CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep

Diff for /OpenXM/src/cfep/MyEnvironment.m between version 1.5 and 1.6

version 1.5, 2016/10/03 07:42:29 version 1.6, 2016/10/07 02:02:31
Line 170 
Line 170 
   [super dealloc];    [super dealloc];
 }  }
 +(int) checkX {  +(int) checkX {
     return 1;      /* still use an deprecated functions */
     // I need a sample code for runningApplications. 2016.09.30  
     /*  
   NSEnumerator *apps = [[[NSWorkspace sharedWorkspace] launchedApplications] objectEnumerator ];    NSEnumerator *apps = [[[NSWorkspace sharedWorkspace] launchedApplications] objectEnumerator ];
   NSDictionary *dicApp;    NSDictionary *dicApp;
   while (dicApp = [apps nextObject]) {    while (dicApp = [apps nextObject]) {
     if ([@"X11" compare: [dicApp objectForKey: @"NSApplicationName"]] == NSOrderedSame) {      if ([@"XQuartz" compare: [dicApp objectForKey: @"NSApplicationName"]] == NSOrderedSame) {
           NSLog(@"X11 is running.\n");            NSLog(@"X11 is running.\n");
           return 1;            return 1;
         }          }
   }    }
   NSLog(@"X11 is NOT running.\n");    NSLog(@"X11 is NOT running.\n");
   return 0;    return 0;
      */  
 }  }
 -(void) showForDebug {  -(void) showForDebug {
   NSLog(@"OpenXM_HOME=%@\n",OpenXM_HOME);    NSLog(@"OpenXM_HOME=%@\n",OpenXM_HOME);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>