<?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: UIButton troubles, and Obj-C magic</title>
	<atom:link href="http://blog.jayway.com/2008/12/12/uibutton-troubles-and-obj-c-magic/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com/2008/12/12/uibutton-troubles-and-obj-c-magic/</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Sun, 12 Feb 2012 05:23:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: luke</title>
		<link>http://blog.jayway.com/2008/12/12/uibutton-troubles-and-obj-c-magic/comment-page-1/#comment-76691</link>
		<dc:creator>luke</dc:creator>
		<pubDate>Tue, 01 Feb 2011 14:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=557#comment-76691</guid>
		<description>Frank, Great work.

I&#039;m also subclassing UIButton and adding an instance variable like Ariel.

Any experience of issues?

L</description>
		<content:encoded><![CDATA[<p>Frank, Great work.</p>
<p>I&#8217;m also subclassing UIButton and adding an instance variable like Ariel.</p>
<p>Any experience of issues?</p>
<p>L</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ariel</title>
		<link>http://blog.jayway.com/2008/12/12/uibutton-troubles-and-obj-c-magic/comment-page-1/#comment-11052</link>
		<dc:creator>Ariel</dc:creator>
		<pubDate>Fri, 04 Sep 2009 04:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=557#comment-11052</guid>
		<description>Frank, I need subclassing UIButton but also I need add some instance variable. Obviusly the sizes of classes are diferent.
I test it, and aparently run ok.

It&#039;s OK or maybe I&#039;ll have problems in the future, with more test?</description>
		<content:encoded><![CDATA[<p>Frank, I need subclassing UIButton but also I need add some instance variable. Obviusly the sizes of classes are diferent.<br />
I test it, and aparently run ok.</p>
<p>It&#8217;s OK or maybe I&#8217;ll have problems in the future, with more test?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bchamp</title>
		<link>http://blog.jayway.com/2008/12/12/uibutton-troubles-and-obj-c-magic/comment-page-1/#comment-9139</link>
		<dc:creator>bchamp</dc:creator>
		<pubDate>Mon, 10 Aug 2009 00:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=557#comment-9139</guid>
		<description>Frank, when I tried this with XCode 3.1.2 and iPhone SDK 2.2.1, it reported that \instance variable isa is declared protected\ and refused to compile. What am I missing?</description>
		<content:encoded><![CDATA[<p>Frank, when I tried this with XCode 3.1.2 and iPhone SDK 2.2.1, it reported that \instance variable isa is declared protected\ and refused to compile. What am I missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guyal</title>
		<link>http://blog.jayway.com/2008/12/12/uibutton-troubles-and-obj-c-magic/comment-page-1/#comment-51</link>
		<dc:creator>guyal</dc:creator>
		<pubDate>Wed, 31 Dec 2008 06:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=557#comment-51</guid>
		<description>Right. Thanks.</description>
		<content:encoded><![CDATA[<p>Right. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Olsson</title>
		<link>http://blog.jayway.com/2008/12/12/uibutton-troubles-and-obj-c-magic/comment-page-1/#comment-50</link>
		<dc:creator>Fredrik Olsson</dc:creator>
		<pubDate>Tue, 30 Dec 2008 21:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=557#comment-50</guid>
		<description>The instance size of a Objective-C object is always the total size of it&#039;s instance variables, including the instance variables of the super class, and nothing else.

This means that a subclass can only increase the instance size, never decrease it. And if a subclass do not introduce any instance variables, then it&#039;s instance size is identical to the superclass.

The class name, class- and instance-methods do not change the instance size; they will change the size of the class. This is not that important to know unless you fiddle with automatic proxy generation, or mock objects. But more info is in the &lt;a href=&quot;http://developer.apple.com/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html&quot; rel=&quot;nofollow&quot;&gt;&quot;Objective-C 2.0 Runtime Reference&quot;&lt;/a&gt; in the developer documentation.</description>
		<content:encoded><![CDATA[<p>The instance size of a Objective-C object is always the total size of it&#8217;s instance variables, including the instance variables of the super class, and nothing else.</p>
<p>This means that a subclass can only increase the instance size, never decrease it. And if a subclass do not introduce any instance variables, then it&#8217;s instance size is identical to the superclass.</p>
<p>The class name, class- and instance-methods do not change the instance size; they will change the size of the class. This is not that important to know unless you fiddle with automatic proxy generation, or mock objects. But more info is in the <a href="http://developer.apple.com/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html" rel="nofollow">&#8220;Objective-C 2.0 Runtime Reference&#8221;</a> in the developer documentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guyal</title>
		<link>http://blog.jayway.com/2008/12/12/uibutton-troubles-and-obj-c-magic/comment-page-1/#comment-49</link>
		<dc:creator>guyal</dc:creator>
		<pubDate>Tue, 30 Dec 2008 17:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=557#comment-49</guid>
		<description>Very neat, though how is it that the two classes are the same bytewise size? Are the only size differences between your implementation and Cocoa&#039;s superclass things like having &quot;-32&quot; instead of &quot;0&quot;, and both are treated as a signed int for sizing purposes. As in, depending on how you calculate &quot;size&quot;, the fact that the subclass has a different name and superclass declaration would alone guarantee different sizes...</description>
		<content:encoded><![CDATA[<p>Very neat, though how is it that the two classes are the same bytewise size? Are the only size differences between your implementation and Cocoa&#8217;s superclass things like having &#8220;-32&#8243; instead of &#8220;0&#8243;, and both are treated as a signed int for sizing purposes. As in, depending on how you calculate &#8220;size&#8221;, the fact that the subclass has a different name and superclass declaration would alone guarantee different sizes&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

