Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

XnavxeMiyyep

macrumors 65816
Original poster
Mar 27, 2003
1,131
4
Washington
In Objective-C, how would I detect what side the Dock is on (bottom, left, right)? I looked all over and couldn't find it.
 
Actually, the solution came to me in a dream last night.

Set an NSRect to the [NSScreen visibleFrame] and compare the x, width, and height to that of an NSRect of the [NSScreen frame].

(Obviously you could check for multiple monitors and such, but that's the gist of it)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.