<?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>kallewoof.com &#187; Languages</title>
	<atom:link href="http://kallewoof.com/tag/languages/feed/" rel="self" type="application/rss+xml" />
	<link>http://kallewoof.com</link>
	<description>privacy, democracy, and software</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The equivalent of &#8216;toString&#8217; in Objective-C.</title>
		<link>http://kallewoof.com/2010/06/01/the-equivalent-of-tostring-in-objective-c/</link>
		<comments>http://kallewoof.com/2010/06/01/the-equivalent-of-tostring-in-objective-c/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 09:09:58 +0000</pubDate>
		<dc:creator>Kalle</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iStar]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kallewoof.com/?p=482</guid>
		<description><![CDATA[If you&#8217;ve ever wondered if there&#8217;s a convenient way in Objective-C to write a function for &#8220;expressing&#8221; the value of an object of yours, as a string, just like &#8220;toString&#8221; in e.g. JavaScript (and Java? I think), I&#8217;ve got good &#8230; <a href="http://kallewoof.com/2010/06/01/the-equivalent-of-tostring-in-objective-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever wondered if there&#8217;s a convenient way in Objective-C to write a function for &#8220;expressing&#8221; the value of an object of yours, as a string, just like &#8220;toString&#8221; in e.g. JavaScript (and Java? I think), I&#8217;ve got good news:</p>
<blockquote><p><code>-(NSString *)description</code></p></blockquote>
<p>Add the above method to your Objective-C class and you&#8217;ll be able to NSLog it or get its string value anywhere using <code>[OBNAME description]</code>. In short, it will now respond with its &#8216;description&#8217; to &#8216;%@&#8217; in an NSString stringWithFormat expression.</p>
<p>Example:</p>
<pre>
@interface Person : NSObject {
  NSString *name;
  NSString *phone;
  NSInteger age;
}

-(NSString *)description;
[...]
-(NSString *)description
{
  return [NSString stringWithFormat:@"%@ (%d): %@",
        name, age, phone];
}
</pre>
<p>Then somewhere we have a Person object and we want to see its value.</p>
<pre>
NSLog(@"We've got %@", aPerson);
myLabel.text = [NSString stringWithFormat:@"Details: %@", aPerson];
</pre>
<p>(pardon any errors in code above &#8212; untested as is)</p>
]]></content:encoded>
			<wfw:commentRss>http://kallewoof.com/2010/06/01/the-equivalent-of-tostring-in-objective-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mac OS X 10.6.2 and input methods.</title>
		<link>http://kallewoof.com/2010/03/22/mac-os-x-10-6-2-and-input-methods/</link>
		<comments>http://kallewoof.com/2010/03/22/mac-os-x-10-6-2-and-input-methods/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 18:21:03 +0000</pubDate>
		<dc:creator>Kalle</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Japanese]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Retarded]]></category>
		<category><![CDATA[Solved]]></category>
		<category><![CDATA[Stupid]]></category>
		<category><![CDATA[Swedish]]></category>

		<guid isPermaLink="false">http://kallewoof.com/?p=409</guid>
		<description><![CDATA[So, I turned on Japanese on my Mac. I also turned on &#8220;let individual applcations have separate input methods&#8221; because I often talk to A in English and B in Japanese and C in Swedish simultaneously on Adium, and it &#8230; <a href="http://kallewoof.com/2010/03/22/mac-os-x-10-6-2-and-input-methods/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, I turned on Japanese on my Mac. I also turned on &#8220;let individual applcations have separate input methods&#8221; because I often talk to A in English and B in Japanese and C in Swedish simultaneously on Adium, and it keeps track of which is which when I tab between them, which is standard behavior. No claps, sorry.</p>
<p>But&#8230; when I try to change it so that Swedish is the default input methods &#8230;. I can&#8217;t. Uh. Right.</p>
<p>&#8230; huh? Why can&#8217;t I drag and arrange my input methods in order of preference?</p>
<p>The deal is, whenever I open a new &#8230; window. Or tab, in Safari&#8230; I get it in Japanese.</p>
<p>Imagine this scenario: I open up a new tab in my browser! I decide to boldly go where none other has boldly gone before, and I type in &#8220;www.google.com&#8221; BUT!</p>
<p>BUT!!!! I do not GET &#8220;www.google.com&#8221; in the browser.</p>
<p>No sir. I don&#8217;t. I get &#8220;っっw。ごおgぇ。cおm&#8221;</p>
<p>in the browser.</p>
<p>And this is not what I wanted! Nope. No sir. Not anywhere or any way.</p>
<p>Can you feel my frustration shining? For now, I&#8217;ve turned Japanese off, so any time I talk to my girlfriend or whoever I will do so in &#8220;Konnichiwa watashi no chinchin wo sutte kudasai&#8221; romaji. Anyone got any nice clues on this one? It&#8217;s completely unbelievable that they&#8217;d not realize that people, sometimes, would prefer not to have their languages thrown at them in alphabetic order. (Yes, &#8220;Japanese&#8221; comes before &#8220;Swedish&#8221;.) Or is it that every tester was an American, thus &#8220;English&#8221; comes before &#8220;Japanese&#8221; and it&#8217;s not a &#8220;problem&#8221;?</p>
<p><strong>EDIT: I finally figured this out. </strong>The reason it was acting up was because of 3 separate factors which, combined, do not work:</p>
<p>1. Japanese input.<br />
2. Swedish as alternative input<br />
3. English as operating system language.</p>
<p>The fix is to change the OS language to Swedish. I personally hate having the OS in Swedish, but I&#8217;m apparently given no choice. Better that than no Japanese though, I suppose.</p>
<div><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;"><span style="line-height: normal; white-space: pre-wrap;"><br />
</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://kallewoof.com/2010/03/22/mac-os-x-10-6-2-and-input-methods/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>I&#8217;m home.</title>
		<link>http://kallewoof.com/2009/12/30/im-home/</link>
		<comments>http://kallewoof.com/2009/12/30/im-home/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 12:04:56 +0000</pubDate>
		<dc:creator>Kalle</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Awesome]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Japanese]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Swedish]]></category>

		<guid isPermaLink="false">http://kallewoof.com/?p=378</guid>
		<description><![CDATA[Yes indeed I am. And I bought an iPhone. For anyone who speaks Japanese (or for that matter, Chinese or any other language which requires more than the average a-z), I can inform you that which I had wished somebody &#8230; <a href="http://kallewoof.com/2009/12/30/im-home/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yes indeed I am.</p>
<p>And I bought an iPhone. For anyone who speaks Japanese (or for that matter, Chinese or any other language which requires more than the average a-z), I can inform you that which I had wished somebody out there had informed me in a straightforward manner when I started digging into this over a year ago.</p>
<p><strong>Yes, you can use Japanese and Swedish (or whatever combination) on the iPhone simultaneously.</strong> I can get my åäö&#8217;s which my Japanese cell couldn&#8217;t spit out for the life of it (me), and I can get 日本語 to slither out of it as well. You can send SMS&#8217;es within Sweden in Japanese, and in general, you can use them as you would in Japan, except that they also properly support Swedish.</p>
<p>In case you are confuzzled about how to do this, the Swedish (with presumed English translation in parentheses) menu alternatives for getting Japanese enabled is as follows:</p>
<p>Inställningar (Settings) &gt; Allmänt (General) &gt; Internationellt (International) &gt; Tangentbord (Keyboard) &gt; Japanska (Japanese) &gt; QWERTY or Kana (whichever you prefer).</p>
]]></content:encoded>
			<wfw:commentRss>http://kallewoof.com/2009/12/30/im-home/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

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