<?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: Using CoreWLAN on MacOS 10.5</title>
	<atom:link href="http://dougt.org/wordpress/2009/09/usingcorewlan/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougt.org/wordpress/2009/09/usingcorewlan/</link>
	<description>best. tagline. ever.</description>
	<lastBuildDate>Sun, 11 Jul 2010 00:21:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: dougt</title>
		<link>http://dougt.org/wordpress/2009/09/usingcorewlan/comment-page-1/#comment-1484</link>
		<dc:creator>dougt</dc:creator>
		<pubDate>Fri, 05 Mar 2010 16:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://dougt.org/wordpress/?p=481#comment-1484</guid>
		<description>Joth, very cool.  Can&#039;t wait to check it out!</description>
		<content:encoded><![CDATA[<p>Joth, very cool.  Can&#8217;t wait to check it out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joth</title>
		<link>http://dougt.org/wordpress/2009/09/usingcorewlan/comment-page-1/#comment-1483</link>
		<dc:creator>Joth</dc:creator>
		<pubDate>Fri, 05 Mar 2010 10:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://dougt.org/wordpress/?p=481#comment-1483</guid>
		<description>Thanks for sharing the info. This set me in the right direction for implementing geolocation in Chromium on OSX 10.6 (patch pending: http://codereview.chromium.org/669083)</description>
		<content:encoded><![CDATA[<p>Thanks for sharing the info. This set me in the right direction for implementing geolocation in Chromium on OSX 10.6 (patch pending: <a href="http://codereview.chromium.org/669083)" rel="nofollow">http://codereview.chromium.org/669083)</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dgatwood</title>
		<link>http://dougt.org/wordpress/2009/09/usingcorewlan/comment-page-1/#comment-1376</link>
		<dc:creator>dgatwood</dc:creator>
		<pubDate>Sat, 31 Oct 2009 20:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://dougt.org/wordpress/?p=481#comment-1376</guid>
		<description>You&#039;re both making this way too hard.

1.  Add the framework to the project.  Build against the 10.6 SDK.
2.  Change the compiler settings to target earlier versions of the OS.
3.  In &quot;Other Linker Flags&quot;, add &quot;-weak_framework CoreWLAN&quot; (without the quotes).
4.  In your code, before you try to use any class methods on CWInterface or whatever, make sure the class exists:

	id cwi = NSClassFromString(@&quot;CWInterface&quot;);
	if (cwi) {
		/* Optionally use cwi instead of CWInterface */
		interfaces = [cwi supportedInterfaces];
	}

You can even store the class reference as an ivar so that you never have to do more than:

	 if (_cwi) {
		/* 10.6 code */
	} else {
		/* original 10.5 code */
	}

or whatever.</description>
		<content:encoded><![CDATA[<p>You&#8217;re both making this way too hard.</p>
<p>1.  Add the framework to the project.  Build against the 10.6 SDK.<br />
2.  Change the compiler settings to target earlier versions of the OS.<br />
3.  In &#8220;Other Linker Flags&#8221;, add &#8220;-weak_framework CoreWLAN&#8221; (without the quotes).<br />
4.  In your code, before you try to use any class methods on CWInterface or whatever, make sure the class exists:</p>
<p>	id cwi = NSClassFromString(@&#8221;CWInterface&#8221;);<br />
	if (cwi) {<br />
		/* Optionally use cwi instead of CWInterface */<br />
		interfaces = [cwi supportedInterfaces];<br />
	}</p>
<p>You can even store the class reference as an ivar so that you never have to do more than:</p>
<p>	 if (_cwi) {<br />
		/* 10.6 code */<br />
	} else {<br />
		/* original 10.5 code */<br />
	}</p>
<p>or whatever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dougt</title>
		<link>http://dougt.org/wordpress/2009/09/usingcorewlan/comment-page-1/#comment-1323</link>
		<dc:creator>dougt</dc:creator>
		<pubDate>Thu, 17 Sep 2009 02:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://dougt.org/wordpress/?p=481#comment-1323</guid>
		<description>nice!  I will try it out.</description>
		<content:encoded><![CDATA[<p>nice!  I will try it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://dougt.org/wordpress/2009/09/usingcorewlan/comment-page-1/#comment-1322</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 17 Sep 2009 00:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://dougt.org/wordpress/?p=481#comment-1322</guid>
		<description>NSBundle handles all the dynamic loading details for you (and encapsulates the details of where the actual library is in the framework).

NSBundle * bundle = [[NSBundle alloc] initWIthPath:@&quot;/System/Library/Frameworks/CoreWLAN.framework&quot;];

Class CWI_class = [bundle classNamed:@(”CWInterface”];

Then you should be able to use the normal Obj-C message passing syntax with the Class object instead of using objc_msgSend.  (Although Xcode will give you warnings for not having prototypes, you can still send the messages using the standard syntax.)

Also, in your printf statements, you may want to call [[object description] UTF8String] to get a C-string with details on the object.</description>
		<content:encoded><![CDATA[<p>NSBundle handles all the dynamic loading details for you (and encapsulates the details of where the actual library is in the framework).</p>
<p>NSBundle * bundle = [[NSBundle alloc] initWIthPath:@&#8221;/System/Library/Frameworks/CoreWLAN.framework&#8221;];</p>
<p>Class CWI_class = [bundle classNamed:@(”CWInterface”];</p>
<p>Then you should be able to use the normal Obj-C message passing syntax with the Class object instead of using objc_msgSend.  (Although Xcode will give you warnings for not having prototypes, you can still send the messages using the standard syntax.)</p>
<p>Also, in your printf statements, you may want to call [[object description] UTF8String] to get a C-string with details on the object.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
