<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>devedup.com &#187; iphone development</title>
	<atom:link href="http://blog.devedup.com/index.php/tag/iphone-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.devedup.com</link>
	<description></description>
	<lastBuildDate>Sun, 09 Oct 2011 16:00:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>iPhone: This class is not key value coding-compliant for the key &#8230;..</title>
		<link>http://blog.devedup.com/index.php/2009/11/16/this-class-is-not-key-value-coding-compliant-for-the-key/</link>
		<comments>http://blog.devedup.com/index.php/2009/11/16/this-class-is-not-key-value-coding-compliant-for-the-key/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 21:34:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[iphone development]]></category>
		<category><![CDATA[key value coding-compliant]]></category>

		<guid isPermaLink="false">http://blog.devedup.com/?p=153</guid>
		<description><![CDATA[Doing some iPhone development and this error really caught me out for a while: 2009-11-16 21:02:48.387 Pickers[3779:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[&#60;UIViewController 0x381d740&#62; setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key datePicker.' 2009-11-16 21:02:48.388 Pickers[3779:207] Stack: ( It&#8217;s seemed fairly cryptic at the time. I had created [...]]]></description>
			<content:encoded><![CDATA[<p>Doing some iPhone development and this error really caught me out for a while:</p>
<pre class="brush: objc;">2009-11-16 21:02:48.387 Pickers[3779:207] *** Terminating app due to uncaught
exception 'NSUnknownKeyException', reason: '[&lt;UIViewController 0x381d740&gt;
setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key datePicker.'
2009-11-16 21:02:48.388 Pickers[3779:207] Stack: (</pre>
<p>It&#8217;s seemed fairly cryptic at the time. I had created a Tab Bar Controller and for each tab button, i hadn&#8217;t set its class identity &#8211; so each tab was still declared as a UIViewController instead of the actual Controller class that i had created. </p>
<p>The error comes from the NSKeyValueCoding category which allows you to access properties via setValue: forKey:</p>
<pre class="brush: objc;">
Person *aPerson = [[Person alloc] initWithAge: 53];
aPerson.name = @&quot;Steve&quot;;
// NOTE: dot notation, uses synthesized setter, equivalent to [aPerson setName: @&quot;Steve&quot;];
NSLog(@&quot;Access by message (%@), dot notation(%@),
    property name(%@) and direct instance variable access (%@)&quot;,
      [aPerson name], aPerson.name, [aPerson valueForKey:@&quot;name&quot;], aPerson-&gt;name);
</pre>
<p>So i guess it is just complaining that it can&#8217;t find the generated setter method named setDatePicker &#8211; because datePicker instance is  not  on the generic class.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.devedup.com/index.php/2009/11/16/this-class-is-not-key-value-coding-compliant-for-the-key/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

