diff options
author | 2009-02-26 01:38:00 +0000 | |
---|---|---|
committer | 2009-02-26 01:38:00 +0000 | |
commit | 037f9b9e4216078b9a7b667c25c8b825bea23219 (patch) | |
tree | b407e1491769875da80292de54f5cda1c91b8c51 /AppKit/GTMNSWorkspace+RunningTest.m | |
parent | 4c2218dc038a6cca3c972a153e3f73c5730fc876 (diff) |
some updates for keys that aren't always there
Diffstat (limited to 'AppKit/GTMNSWorkspace+RunningTest.m')
-rw-r--r-- | AppKit/GTMNSWorkspace+RunningTest.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/AppKit/GTMNSWorkspace+RunningTest.m b/AppKit/GTMNSWorkspace+RunningTest.m index abd20a6..6e8ff33 100644 --- a/AppKit/GTMNSWorkspace+RunningTest.m +++ b/AppKit/GTMNSWorkspace+RunningTest.m @@ -57,16 +57,16 @@ processInfo = [ws gtm_processInfoDictionaryForActiveApp]; STAssertNotNil(processInfo, nil); + // Only check the keys that have to be there NSString *const keys[] = { - kGTMWorkspaceRunningPSN, kGTMWorkspaceRunningParentPSN, + kGTMWorkspaceRunningPSN, kGTMWorkspaceRunningFlavor, kGTMWorkspaceRunningAttributes, - kGTMWorkspaceRunningFileType, kGTMWorkspaceRunningFileCreator, - kGTMWorkspaceRunningPID, kGTMWorkspaceRunningLSBackgroundOnly, + kGTMWorkspaceRunningLSBackgroundOnly, kGTMWorkspaceRunningLSUIElement, kGTMWorkspaceRunningIsHidden, - kGTMWorkspaceRunningCheckedIn, kGTMWorkspaceRunningBundleIdentifier, - kGTMWorkspaceRunningBundleVersion, kGTMWorkspaceRunningBundleName, - kGTMWorkspaceRunningLSUIPresentationMode, kGTMWorkspaceRunningBundlePath, - kGTMWorkspaceRunningBundleExecutable + kGTMWorkspaceRunningCheckedIn, + kGTMWorkspaceRunningBundleVersion, + kGTMWorkspaceRunningLSUIPresentationMode, + }; for (size_t i = 0; i < sizeof(keys) / sizeof(NSString *); ++i) { NSString *const key = keys[i]; |