21 lines
538 B
Mathematica
21 lines
538 B
Mathematica
|
#import "MyUtils.h"
|
||
|
|
||
|
@implementation NSScreen (MyUtils)
|
||
|
//---------------------------------------------------------------------------
|
||
|
|
||
|
+ (NSScreen*)MenuBarScreen
|
||
|
{ return [[NSScreen screens] objectAtIndex:0]; }
|
||
|
|
||
|
//---------------------------------------------------------------------------
|
||
|
#ifdef __CGDIRECT_DISPLAY_H__
|
||
|
|
||
|
- (CGDirectDisplayID)DirectDisplayID
|
||
|
{
|
||
|
return [[[self deviceDescription]
|
||
|
objectForKey:@"NSScreenNumber"] pointerValue];
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
//---------------------------------------------------------------------------
|
||
|
@end
|