<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Important Shock]]></provider_name><provider_url><![CDATA[https://importantshock.wordpress.com]]></provider_url><author_name><![CDATA[Patrick Thomson]]></author_name><author_url><![CDATA[https://importantshock.wordpress.com/author/importantshock/]]></author_url><title><![CDATA[Cocoa Snippet: Detonate your&nbsp;Cursor]]></title><type><![CDATA[link]]></type><html><![CDATA[<p><code>- (IBAction)poofCursor:(id)sender<br />
{<br />
NSShowAnimationEffect(NSAnimationEffectPoof, [NSEvent mouseLocation], NSZeroSize, NULL, NULL, NULL);<br />
[NSCursor hide];<br />
}</code></p>
<p>In case you can&#8217;t figure it out, this code shows the *poof* animation one gets when dragging items off the Dock at the current mouse location, then hides the mouse. The overall effect resembles the mouse cursor exploding.</p>
]]></html></oembed>