Changeset 592 for trunk/appswitch/appswitch/main.m
- Timestamp:
- 11/13/09 21:53:16 (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/appswitch/appswitch/main.m
r352 r592 3 3 Nicholas Riley <appswitch@sabi.net> 4 4 5 Copyright (c) 2003-0 7, Nicholas Riley5 Copyright (c) 2003-09, Nicholas Riley 6 6 All rights reserved. 7 7 … … 22 22 #include <sys/ioctl.h> 23 23 #include <ApplicationServices/ApplicationServices.h> 24 #i nclude "CPS.h"24 #import <AppKit/AppKit.h> 25 25 26 26 const char *APP_NAME; 27 27 28 #define VERSION "1.1 "28 #define VERSION "1.1.1d1" 29 29 30 30 struct { … … 467 467 case ACTION_NONE: break; 468 468 // no Process Manager equivalents - rdar://problem/4808397 469 case ACTION_SHOW_ALL: err = CPSPostShowAllReq(&psn); verb = "show all"; break; 470 case ACTION_HIDE_OTHERS: err = CPSPostHideMostReq(&psn); verb = "hide other"; break; 469 case ACTION_SHOW_ALL: 470 [[NSAutoreleasePool alloc] init]; 471 [[NSApplication sharedApplication] unhideAllApplications: nil]; 472 err = noErr; 473 verb = "show all"; 474 break; 475 case ACTION_HIDE_OTHERS: 476 [[NSAutoreleasePool alloc] init]; 477 [[NSApplication sharedApplication] hideOtherApplications: nil]; 478 err = noErr; 479 verb = "hide other"; 480 break; 471 481 default: 472 482 errexit("internal error: invalid action");
Note:
See TracChangeset
for help on using the changeset viewer.