| name | language | licence |
|---|---|---|
| kqueues | C | Other |
| Method Replacement (swizzle) | Objective-C | Other |
| Safe respondsToSelector: override | Objective-C | Other |
| Convert NSScreen visibleFrame to screen coordinates | Objective-C | Other |
| Printing callstacks | Objective-C | Other |
| Draw single-pixel on top of splitview | Objective-C | Other |
| raw fsevents | C | Other |
| NSCollectionView Finding View Items in mouseDown: | Objective-C | Other |
< 1 2 3 4 >
language: Objective-C
licence: Other
Convert NSScreen visibleFrame to screen coordinates
options: view full snippet • send to code collector
@interface NSScreen (NSScreenAdditions)
// Returns visibleFrame flipped to screen coordinates
-(NSRect) flippedVisibleFrame;
@end
@implementation NSScreen (NSScreenAdditions)
-(NSRect) flippedVisibleFrame
{
NSRect visibleFrame = [self visibleFrame];
NSRect frame = [self frame];



library
objective-c (22)