Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reposition mac desktop in cocoa

Tags:

macos

cocoa

Is there a function that allows you to manipulate the desktop like Dashboard->Manage Widgets?

The desktop appears to reposition itself and slide up. What I want to do is not just slide the desktop when my toolbar is temporarily active but have the entire desktop resize. I assume if you can grab a handle to manipulate the desktop like Dashboard, additional similar operations should be possible.

Desktop windows continue to redraw and operate normally so this is not a screen cap that is just repositioned.

Is Dashboard executing a desktop animation function? or executing a complex set of functions to emulate this effect? or private API? Anyone know?

like image 250
James C Avatar asked Oct 19 '10 01:10

James C


1 Answers

My guess is emulation. It's probably a window at a very high window level that grabs a screen cap of your desktop to use as its background then animates the rest.

In any case, there's no Cocoa function to let you do this with your own UI.

like image 174
Joshua Nozzi Avatar answered Oct 21 '22 04:10

Joshua Nozzi