<?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>MacOSCoders &#187; XCode</title>
	<atom:link href="http://www.macoscoders.com/category/xcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macoscoders.com</link>
	<description>My blog to talk on iPhone, Mac OS, Adobe Flex, AIR...</description>
	<lastBuildDate>Mon, 16 Aug 2010 10:45:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Error: &#8220;CGGStackRestore: gstack underflow&#8221;</title>
		<link>http://www.macoscoders.com/2009/11/02/error-cggstackrestore-gstack-underflow/</link>
		<comments>http://www.macoscoders.com/2009/11/02/error-cggstackrestore-gstack-underflow/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 07:55:24 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[XCode]]></category>
		<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[CGContextRestoreGState]]></category>
		<category><![CDATA[CGContextSaveGState]]></category>
		<category><![CDATA[CoreGraphics]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=383</guid>
		<description><![CDATA[Today while I was working with some CoreGraphics API&#8217;s, I encountered a error which I was seeing it for the first time. CG for dumping an error &#8220;CGGStackRestore: gstack underflow&#8221; in the console everytime I invoked a method that was doing some CG based operations. Googling around I found that in CoreGraphics, you can save [...]]]></description>
			<content:encoded><![CDATA[<p>Today while I was working with some CoreGraphics API&#8217;s, I encountered a error which I was seeing it for the first time. CG for dumping an error &#8220;CGGStackRestore: gstack underflow&#8221; in the console everytime I invoked a method that was doing some CG based operations. Googling around I found that in CoreGraphics, you can save (CGContextSaveGState) and restore (CGContextRestoreGState) the graphics state. When the  state is saved, a copy is put on the graphics state&#8217;s &#8220;stack&#8221;, and when  it is restored, the top state on the stack is removed and used. If we  restore the state more times than we save it and then when we try to remove  and use the top item of the stack, the stack is empty, causing a stack  &#8220;underflow&#8221; error. So just make sure you have enough save-restore state methods called and it will fix the issue.</p>
<div class="wp-caption aligncenter" style="width: 765px"><img title="CGGStackRestore" src="http://www.macoscoders.com/images/CGGStackRestore.jpg" alt="CGGStackRestore" width="755" height="59" /><p class="wp-caption-text">CGGStackRestore</p></div>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/11/02/error-cggstackrestore-gstack-underflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Replace &#8220;__MyCompanyName__&#8221; in the new files from XCode</title>
		<link>http://www.macoscoders.com/2009/10/23/how-to-replace-__mycompanyname__-in-the-new-files-from-xcode/</link>
		<comments>http://www.macoscoders.com/2009/10/23/how-to-replace-__mycompanyname__-in-the-new-files-from-xcode/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 06:31:45 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[XCode]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=376</guid>
		<description><![CDATA[When we create a new file in XCode, the default template has the company name listed as __MyCompanyName__. If you want this to show your actual company name instead of __MyCompanyName__, then execute the following command in your terminal. Make sure to replace the&#8221;YourCompanyNameHere&#8221; with the name of your company.
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" [...]]]></description>
			<content:encoded><![CDATA[<p>When we create a new file in XCode, the default template has the company name listed as __MyCompanyName__. If you want this to show your actual company name instead of __MyCompanyName__, then execute the following command in your terminal. Make sure to replace the&#8221;YourCompanyNameHere&#8221; with the name of your company.</p>
<pre style="padding-left: 30px;">defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" = "YourCompanyNameHere" ; }'</pre>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/10/23/how-to-replace-__mycompanyname__-in-the-new-files-from-xcode/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
