<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Capture Cursor</title>
	<atom:link href="http://boredzo.org/blog/archives/2010-03-13/capture-cursor/feed" rel="self" type="application/rss+xml" />
	<link>http://boredzo.org/blog/archives/2010-03-13/capture-cursor</link>
	<description>The personal weblog of Peter Hosey.</description>
	<lastBuildDate>Tue, 17 Jan 2012 18:19:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Peter Hosey</title>
		<link>http://boredzo.org/blog/archives/2010-03-13/capture-cursor/comment-page-1#comment-326888</link>
		<dc:creator>Peter Hosey</dc:creator>
		<pubDate>Fri, 30 Jul 2010 06:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/?p=1270#comment-326888</guid>
		<description>Oooh! Nice find, Sean. I must have missed that back when I was looking through the new-in-10.6 docs. ☺</description>
		<content:encoded><![CDATA[<p>Oooh! Nice find, Sean. I must have missed that back when I was looking through the new-in-10.6 docs. ☺</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://boredzo.org/blog/archives/2010-03-13/capture-cursor/comment-page-1#comment-326768</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 29 Jul 2010 02:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/?p=1270#comment-326768</guid>
		<description>Maybe I misunderstand, but can&#039;t you use NSCursor&#039;s currentSystemCursor or QDGetCursorData()?</description>
		<content:encoded><![CDATA[<p>Maybe I misunderstand, but can&#8217;t you use NSCursor&#8217;s currentSystemCursor or QDGetCursorData()?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karsten</title>
		<link>http://boredzo.org/blog/archives/2010-03-13/capture-cursor/comment-page-1#comment-305955</link>
		<dc:creator>Karsten</dc:creator>
		<pubDate>Sun, 14 Mar 2010 12:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/?p=1270#comment-305955</guid>
		<description>you could probably do it much simpler by calling CGSCreateRegisteredCursorImage

here&#039;s a snippet:

NSInteger cid = CGSMainConnectionID();
CGPoint outHotSpot;
CGImageRef image = CGSCreateRegisteredCursorImage(cid, &quot;com.apple.coregraphics.GlobalCurrent&quot;, &amp;outHotSpot);
NSSize imageSize = NSMakeSize(CGImageGetWidth(image),CGImageGetHeight(image));
NSImage* nsImage = [[NSImage alloc] initWithCGImage:image size:imageSize];

[imageView setImage: nsImage];

[nsImage release];
[(NSObject*)image release];


That&#039;s how the screencapture command line tool does it and it&#039;s pretty straight forward :-)

Karsten</description>
		<content:encoded><![CDATA[<p>you could probably do it much simpler by calling CGSCreateRegisteredCursorImage</p>
<p>here&#8217;s a snippet:</p>
<p>NSInteger cid = CGSMainConnectionID();<br />
CGPoint outHotSpot;<br />
CGImageRef image = CGSCreateRegisteredCursorImage(cid, &#8220;com.apple.coregraphics.GlobalCurrent&#8221;, &amp;outHotSpot);<br />
NSSize imageSize = NSMakeSize(CGImageGetWidth(image),CGImageGetHeight(image));<br />
NSImage* nsImage = [[NSImage alloc] initWithCGImage:image size:imageSize];</p>
<p>[imageView setImage: nsImage];</p>
<p>[nsImage release];<br />
[(NSObject*)image release];</p>
<p>That&#8217;s how the screencapture command line tool does it and it&#8217;s pretty straight forward :-)</p>
<p>Karsten</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.128 seconds -->

