View Full Version : Dock location in Objective-C
XnavxeMiyyep
Dec 9, 2008, 12:28 AM
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.
XnavxeMiyyep
Dec 9, 2008, 08:20 AM
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)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.