<?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: Accessor Methods</title>
	<atom:link href="http://nslog.com/2003/05/05/accessor_methods/feed" rel="self" type="application/rss+xml" />
	<link>http://nslog.com/2003/05/05/accessor_methods</link>
	<description>The Weblog of Erik J. Barzeski</description>
	<pubDate>Thu, 08 Jan 2009 07:22:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2971</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Wed, 18 Jun 2003 23:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2971</guid>
		<description>Uh, you're missing a lot. More than I have time to discuss here. Research this on your own. The short version: you miss the ability to manage memory, do logic and bounds-checking, etc.</description>
		<content:encoded><![CDATA[<p>Uh, you're missing a lot. More than I have time to discuss here. Research this on your own. The short version: you miss the ability to manage memory, do logic and bounds-checking, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trystero montevideo</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2970</link>
		<dc:creator>trystero montevideo</dc:creator>
		<pubDate>Wed, 18 Jun 2003 21:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2970</guid>
		<description>I also don't get the need for accessor methods at all.  If I declare a variable in the header and set its value to someting can I not just access its value directly from another object as long as I retain it?  what am I missing here...



clarity greatly appreciated!</description>
		<content:encoded><![CDATA[<p>I also don't get the need for accessor methods at all.  If I declare a variable in the header and set its value to someting can I not just access its value directly from another object as long as I retain it?  what am I missing here...</p>
<p>clarity greatly appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Personal vs. Private &#124; NSLog();</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2973</link>
		<dc:creator>Personal vs. Private &#124; NSLog();</dc:creator>
		<pubDate>Sun, 18 May 2003 21:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2973</guid>
		<description>Jamie's written in a far better manner than I could an entry discussing the self-censorship one must apply to their blogging. She also links to...
</description>
		<content:encoded><![CDATA[<p>Jamie's written in a far better manner than I could an entry discussing the self-censorship one must apply to their blogging. She also links to...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Accessor Methods, Part 2 &#124; NSLog();</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2972</link>
		<dc:creator>Accessor Methods, Part 2 &#124; NSLog();</dc:creator>
		<pubDate>Sat, 17 May 2003 17:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2972</guid>
		<description>I wrote about accessor methods in Cocoa before. One of the comments on that article implored me to check out Ali Ozer's talk at WWDC....</description>
		<content:encoded><![CDATA[<p>I wrote about accessor methods in Cocoa before. One of the comments on that article implored me to check out Ali Ozer's talk at WWDC....</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kynn</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2969</link>
		<dc:creator>Kynn</dc:creator>
		<pubDate>Sat, 10 May 2003 04:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2969</guid>
		<description>Erik, thanks! You're a champ.



--Kynn</description>
		<content:encoded><![CDATA[<p>Erik, thanks! You're a champ.</p>
<p>--Kynn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2968</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Tue, 06 May 2003 20:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2968</guid>
		<description>I am sure there is a way that fits most :)



I am equally sure that programmers - being the smart people that they are - could come up with a way where you'd still be able to have your own accessor methods override the default ones.



But I'm the one who dreams of garbage collection. I never  wrote a program that would've suffered by the perfomance hit by having garbage collection either.



I have many other questionable opinions on programming as well ;)</description>
		<content:encoded><![CDATA[<p>I am sure there is a way that fits most <img src='http://nslog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I am equally sure that programmers - being the smart people that they are - could come up with a way where you'd still be able to have your own accessor methods override the default ones.</p>
<p>But I'm the one who dreams of garbage collection. I never  wrote a program that would've suffered by the perfomance hit by having garbage collection either.</p>
<p>I have many other questionable opinions on programming as well <img src='http://nslog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2967</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Tue, 06 May 2003 20:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2967</guid>
		<description>ssp: As a later post of mine (I'll TrackBack this article) will illustrate, it's good that we still write accessors because the differences between two different ways of writing them have impact: performance, memory, threading, etc. There is no "one size fits all" solution.



Kynn: read Apple's "&lt;a href="http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/ObjC.pdf"&gt;The Objective-C Programming Language&lt;/a&gt;" and look at tutorials online (&lt;a href="http://cocoadevcentral.com/"&gt;http://cocoadevcentral.com/&lt;/a&gt; is a good place to start).</description>
		<content:encoded><![CDATA[<p>ssp: As a later post of mine (I'll TrackBack this article) will illustrate, it's good that we still write accessors because the differences between two different ways of writing them have impact: performance, memory, threading, etc. There is no "one size fits all" solution.</p>
<p>Kynn: read Apple's "<a href="http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/ObjC.pdf">The Objective-C Programming Language</a>" and look at tutorials online (<a href="http://cocoadevcentral.com/">http://cocoadevcentral.com/</a> is a good place to start).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2966</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Tue, 06 May 2003 20:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2966</guid>
		<description>Aren't accessor methods a constant pain. You'll have to add them (not to mention the redundant header information), you'll have to change them when changing a variable name. There are 'bad' ways of doing it, like the autorelease example above. 



Why doesn't the IDE simply and transparently generate them for you?



Doesn't sound like it should be a technical problem.</description>
		<content:encoded><![CDATA[<p>Aren't accessor methods a constant pain. You'll have to add them (not to mention the redundant header information), you'll have to change them when changing a variable name. There are 'bad' ways of doing it, like the autorelease example above. </p>
<p>Why doesn't the IDE simply and transparently generate them for you?</p>
<p>Doesn't sound like it should be a technical problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kynn</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2965</link>
		<dc:creator>Kynn</dc:creator>
		<pubDate>Tue, 06 May 2003 19:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2965</guid>
		<description>Okay, dumb question for ya all (especially Erik, since it's his blog, but the rest of you too):



I haven't programmed in C since, oh gads, the dark ages of 1987 or so.  I am fairly up on the concept of OO in theory, although I've never programmed in C++.  (Most of my programming in the last 10 years or so has been in Perl.)



Where should I start learning/relearning Objective C?  I want to get into programming on Mac OS X, so I'd appreciate pointers.



Feel free to write this up as a separate post on your blog and zap me the address, if you're going to make a long write-up of it. I'm sure I'm not the only one asking these kinds of questions. :)  [Also feel free to ignore me completely!]



--Kynn</description>
		<content:encoded><![CDATA[<p>Okay, dumb question for ya all (especially Erik, since it's his blog, but the rest of you too):</p>
<p>I haven't programmed in C since, oh gads, the dark ages of 1987 or so.  I am fairly up on the concept of OO in theory, although I've never programmed in C++.  (Most of my programming in the last 10 years or so has been in Perl.)</p>
<p>Where should I start learning/relearning Objective C?  I want to get into programming on Mac OS X, so I'd appreciate pointers.</p>
<p>Feel free to write this up as a separate post on your blog and zap me the address, if you're going to make a long write-up of it. I'm sure I'm not the only one asking these kinds of questions. <img src='http://nslog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  [Also feel free to ignore me completely!]</p>
<p>--Kynn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2003/05/05/accessor_methods#comment-2964</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Tue, 06 May 2003 13:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/05/05/accessor_methods/#comment-2964</guid>
		<description>Thomas, be fair. The second method handles all three as well. So does the third. And the fourth. Obviously some test, but a test is very, very fast. It's a pointer comparison - very quick. You can probably run a hundred pointer comparisons in the time it takes you to retain and autorelease something.</description>
		<content:encoded><![CDATA[<p>Thomas, be fair. The second method handles all three as well. So does the third. And the fourth. Obviously some test, but a test is very, very fast. It's a pointer comparison - very quick. You can probably run a hundred pointer comparisons in the time it takes you to retain and autorelease something.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
