<?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 for Cocoanetics</title>
	<atom:link href="http://www.cocoanetics.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cocoanetics.com</link>
	<description>Our DNA is written in Objective-C</description>
	<lastBuildDate>Mon, 21 May 2012 04:12:24 +0100</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Twitter.framework Tutorial by matthewfrederick</title>
		<link>http://www.cocoanetics.com/2012/05/twitter-framework-tutorial/#comment-4412</link>
		<dc:creator>matthewfrederick</dc:creator>
		<pubDate>Mon, 21 May 2012 04:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=6356#comment-4412</guid>
		<description>Very cool, thanks for the run-through.

You might find this little library from Twitter handy for parsing the contents of tweets: urls, hashtags, cashtags, mentioned and replied screennames, etc.

http://github.com/twitter/twitter-text-objc</description>
		<content:encoded><![CDATA[<p>Very cool, thanks for the run-through.</p>
<p>You might find this little library from Twitter handy for parsing the contents of tweets: urls, hashtags, cashtags, mentioned and replied screennames, etc.</p>
<p><a href="http://github.com/twitter/twitter-text-objc" rel="nofollow">http://github.com/twitter/twitter-text-objc</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bit Masks by How to create an array of EnumSet</title>
		<link>http://www.cocoanetics.com/2011/12/bit-masks/#comment-4410</link>
		<dc:creator>How to create an array of EnumSet</dc:creator>
		<pubDate>Sat, 19 May 2012 05:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=5738#comment-4410</guid>
		<description>[...] an array of enums where each element of the array can can be a combination of enum constants (i.e. Bit Masks &#124; Cocoanetics)  I tried this:  Java [...]</description>
		<content:encoded><![CDATA[<p>[...] an array of enums where each element of the array can can be a combination of enum constants (i.e. Bit Masks | Cocoanetics)  I tried this:  Java [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Things I learned implementing my first InAppPurchase by iOS In-App Purchase &#124; Dans un an...</title>
		<link>http://www.cocoanetics.com/2010/02/things-i-learned-implementing-my-first-inapppurchase/#comment-4409</link>
		<dc:creator>iOS In-App Purchase &#124; Dans un an...</dc:creator>
		<pubDate>Fri, 18 May 2012 11:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2174#comment-4409</guid>
		<description>[...] a post pointing some tricky points by Cocoanetics. [...]</description>
		<content:encoded><![CDATA[<p>[...] a post pointing some tricky points by Cocoanetics. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Custom-Colored Disclosure Indicators by Marcelo Sanchez</title>
		<link>http://www.cocoanetics.com/2010/10/custom-colored-disclosure-indicators/#comment-4408</link>
		<dc:creator>Marcelo Sanchez</dc:creator>
		<pubDate>Thu, 17 May 2012 20:45:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=3078#comment-4408</guid>
		<description>Thanks a lot for this.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Xcode Build Rules by Compiling Image Resources into a Static Library</title>
		<link>http://www.cocoanetics.com/2012/02/xcode-build-rules/#comment-4406</link>
		<dc:creator>Compiling Image Resources into a Static Library</dc:creator>
		<pubDate>Wed, 16 May 2012 11:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=5887#comment-4406</guid>
		<description>[...] Cocoanetics pointed out that they&#8217;d solved a similar problem, and have a great write-up on how they create compiled resources using custom build rules on their [...]</description>
		<content:encoded><![CDATA[<p>[...] Cocoanetics pointed out that they&#8217;d solved a similar problem, and have a great write-up on how they create compiled resources using custom build rules on their [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NSAttributedString+HTML Q&amp;A by rljacobson</title>
		<link>http://www.cocoanetics.com/2011/08/nsattributedstringhtml-qa/#comment-4405</link>
		<dc:creator>rljacobson</dc:creator>
		<pubDate>Mon, 14 May 2012 19:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=5373#comment-4405</guid>
		<description>Where can I get help with using DTCoreText?</description>
		<content:encoded><![CDATA[<p>Where can I get help with using DTCoreText?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Death of Global Variables by jchan172</title>
		<link>http://www.cocoanetics.com/2009/05/the-death-of-global-variables/#comment-4402</link>
		<dc:creator>jchan172</dc:creator>
		<pubDate>Fri, 11 May 2012 06:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=878#comment-4402</guid>
		<description>Great article! I&#039;m developing on iPhone, and I&#039;d like to add a simpler example to complement this:

Here is the template for the .h file:

//Singleton.h
#import 

@interface SingletonManager : NSObject
{
    NSDictionary* randomDictionary; //just using a dictionary for demonstrative purposes. You can make this a string or whatever you want.
}

+ (Singleton*)sharedSingleton;

@property (nonatomic, retain) NSDictionary *randomDictionary;

@end



Here is the template for the .m file:

//Singleton.m
#import &quot;Singleton.h&quot;

static Singleton *sharedSingleton = nil;

@implementation Singleton

@synthesize randomDictionary;

#pragma mark Singleton Method
+ (Singleton*)sharedSingleton
{
    @synchronized(self)
    {
        if(sharedSingleton == nil)
        {
            sharedSingleton = [[super allocWithZone:NULL] init];
        }
    }
    return sharedSingleton;
}
@end


To get the data, you can then use:

Singleton *singletonManager = [Singleton sharedSingleton];
[[singletonManager randomDictionary] description]; // example of getting the description</description>
		<content:encoded><![CDATA[<p>Great article! I&#8217;m developing on iPhone, and I&#8217;d like to add a simpler example to complement this:</p>
<p>Here is the template for the .h file:</p>
<p>//Singleton.h<br />
#import </p>
<p>@interface SingletonManager : NSObject<br />
{<br />
    NSDictionary* randomDictionary; //just using a dictionary for demonstrative purposes. You can make this a string or whatever you want.<br />
}</p>
<p>+ (Singleton*)sharedSingleton;</p>
<p>@property (nonatomic, retain) NSDictionary *randomDictionary;</p>
<p>@end</p>
<p>Here is the template for the .m file:</p>
<p>//Singleton.m<br />
#import &#8220;Singleton.h&#8221;</p>
<p>static Singleton *sharedSingleton = nil;</p>
<p>@implementation Singleton</p>
<p>@synthesize randomDictionary;</p>
<p>#pragma mark Singleton Method<br />
+ (Singleton*)sharedSingleton<br />
{<br />
    @synchronized(self)<br />
    {<br />
        if(sharedSingleton == nil)<br />
        {<br />
            sharedSingleton = [[super allocWithZone:NULL] init];<br />
        }<br />
    }<br />
    return sharedSingleton;<br />
}<br />
@end</p>
<p>To get the data, you can then use:</p>
<p>Singleton *singletonManager = [Singleton sharedSingleton];<br />
[[singletonManager randomDictionary] description]; // example of getting the description</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Expanding/Collapsing TableView Sections by dasboto</title>
		<link>http://www.cocoanetics.com/2011/03/expandingcollapsing-tableview-sections/#comment-4401</link>
		<dc:creator>dasboto</dc:creator>
		<pubDate>Thu, 10 May 2012 08:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=4829#comment-4401</guid>
		<description>Hello, great article.

There&#039;s one thing, though: I get miscounted-rows exception! When I altered the rows&#039; loop to start from zero, rather than one, it got fixed.</description>
		<content:encoded><![CDATA[<p>Hello, great article.</p>
<p>There&#8217;s one thing, though: I get miscounted-rows exception! When I altered the rows&#8217; loop to start from zero, rather than one, it got fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Submitting Your First Mac App Store App by dfoy</title>
		<link>http://www.cocoanetics.com/2011/10/submitting-your-first-mac-app-store-app/#comment-4400</link>
		<dc:creator>dfoy</dc:creator>
		<pubDate>Wed, 09 May 2012 19:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=5635#comment-4400</guid>
		<description>Greetings,

I have developed a Mac App using XCode 3 on Snow Leopard. I am preparing to go through the App Store Submission process for the first time. I would like to do it from my current environment.

Your article has been helpful but I am still very frustrated by the process having never gone through it before.

Would you be willing to help me step through the Mac App Store Submission process by answering my questions as I go?

Thanks</description>
		<content:encoded><![CDATA[<p>Greetings,</p>
<p>I have developed a Mac App using XCode 3 on Snow Leopard. I am preparing to go through the App Store Submission process for the first time. I would like to do it from my current environment.</p>
<p>Your article has been helpful but I am still very frustrated by the process having never gone through it before.</p>
<p>Would you be willing to help me step through the Mac App Store Submission process by answering my questions as I go?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Block Retain Loop by 2 Stories about Memory Leak in Objective-C at Think in G</title>
		<link>http://www.cocoanetics.com/2012/03/block-retain-loop/#comment-4399</link>
		<dc:creator>2 Stories about Memory Leak in Objective-C at Think in G</dc:creator>
		<pubDate>Wed, 09 May 2012 16:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=6021#comment-4399</guid>
		<description>[...] I was writing this article, I found another article on this topic: Block Retain Loop. I think this is also worth reading. {lang: [...]</description>
		<content:encoded><![CDATA[<p>[...] I was writing this article, I found another article on this topic: Block Retain Loop. I think this is also worth reading. {lang: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fast Folder Nuking on iOS by tapforms</title>
		<link>http://www.cocoanetics.com/2012/02/fast-folder-nuking-on-ios/#comment-4398</link>
		<dc:creator>tapforms</dc:creator>
		<pubDate>Tue, 08 May 2012 20:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=5943#comment-4398</guid>
		<description>I did a search on Apple&#039;s dev forum and found this thread:

https://devforums.apple.com/message/574070

The original poster said it seemed to work for him using moveItemAtPath, but I would suggest an enhancement to your code which first checks to see if the file is in iCloud and use setUbiquitous if it is and moveItemAtPath/URL if it isn&#039;t.

Possibly something like this:

NSNumber*  isIniCloud = nil;
BOOL success = NO;
NSURL *fileURL = [NSURL fileURLWithPath:path];
NSURL *tmpURL = [NSURL fileURLWithPath:tmpPath];
if ([fileURL getResourceValue:&amp;isIniCloud forKey:NSURLIsUbiquitousItemKey error:nil]) {
	// If the item is in iCloud
	if ([isIniCloud boolValue]) {
		success = [fileManager setUbiquitous:NO
							   itemAtURL:fileURL
						  destinationURL:tmpURL
								   error:NULL];
	} else {
		success = [fileManager moveItemAtPath:path
								   toPath:tmpPath
									error:NULL];
	}
				
}
		
if (success)
{

... and the rest of your code ...</description>
		<content:encoded><![CDATA[<p>I did a search on Apple&#8217;s dev forum and found this thread:</p>
<p><a href="https://devforums.apple.com/message/574070" rel="nofollow">https://devforums.apple.com/message/574070</a></p>
<p>The original poster said it seemed to work for him using moveItemAtPath, but I would suggest an enhancement to your code which first checks to see if the file is in iCloud and use setUbiquitous if it is and moveItemAtPath/URL if it isn&#8217;t.</p>
<p>Possibly something like this:</p>
<p>NSNumber*  isIniCloud = nil;<br />
BOOL success = NO;<br />
NSURL *fileURL = [NSURL fileURLWithPath:path];<br />
NSURL *tmpURL = [NSURL fileURLWithPath:tmpPath];<br />
if ([fileURL getResourceValue:&amp;isIniCloud forKey:NSURLIsUbiquitousItemKey error:nil]) {<br />
	// If the item is in iCloud<br />
	if ([isIniCloud boolValue]) {<br />
		success = [fileManager setUbiquitous:NO<br />
							   itemAtURL:fileURL<br />
						  destinationURL:tmpURL<br />
								   error:NULL];<br />
	} else {<br />
		success = [fileManager moveItemAtPath:path<br />
								   toPath:tmpPath<br />
									error:NULL];<br />
	}</p>
<p>}</p>
<p>if (success)<br />
{</p>
<p>&#8230; and the rest of your code &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fast Folder Nuking on iOS by tapforms</title>
		<link>http://www.cocoanetics.com/2012/02/fast-folder-nuking-on-ios/#comment-4397</link>
		<dc:creator>tapforms</dc:creator>
		<pubDate>Tue, 08 May 2012 20:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=5943#comment-4397</guid>
		<description>That&#039;s a very good question. Normally to move a file from the ubiquitous container, you use NSFileManager&#039;s setUbiquitous method and pass in NO. I believe it&#039;s the setUbiquitous command which gives your app permissions to move the file in and out of the ubiquitous container. So I&#039;m guessing that it will fail. I&#039;ll do some experiments to see what happens.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a very good question. Normally to move a file from the ubiquitous container, you use NSFileManager&#8217;s setUbiquitous method and pass in NO. I believe it&#8217;s the setUbiquitous command which gives your app permissions to move the file in and out of the ubiquitous container. So I&#8217;m guessing that it will fail. I&#8217;ll do some experiments to see what happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fast Folder Nuking on iOS by Drops</title>
		<link>http://www.cocoanetics.com/2012/02/fast-folder-nuking-on-ios/#comment-4396</link>
		<dc:creator>Drops</dc:creator>
		<pubDate>Tue, 08 May 2012 20:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=5943#comment-4396</guid>
		<description>What havvens if you move a file out of the dontainer? Because that happens, the class moves it intomthe temporary files folder.</description>
		<content:encoded><![CDATA[<p>What havvens if you move a file out of the dontainer? Because that happens, the class moves it intomthe temporary files folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fast Folder Nuking on iOS by tapforms</title>
		<link>http://www.cocoanetics.com/2012/02/fast-folder-nuking-on-ios/#comment-4395</link>
		<dc:creator>tapforms</dc:creator>
		<pubDate>Tue, 08 May 2012 19:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=5943#comment-4395</guid>
		<description>Hey Oliver,

Great tutorial!

Does this method of deleting have any ramifications to deleting files stored in your iCloud ubiquitous container? The delete part should be fine, but I&#039;m thinking about the renaming part of the deletion process. Would iCloud sync the renaming of the file before the system has an opportunity to issue the removeItemAtPath call? And should the file be managed with an NSFileCoordinator before the call to DTAsyncFileDeleter&#039;s removeItemAtPath method?

Thanks!

Brendan</description>
		<content:encoded><![CDATA[<p>Hey Oliver,</p>
<p>Great tutorial!</p>
<p>Does this method of deleting have any ramifications to deleting files stored in your iCloud ubiquitous container? The delete part should be fine, but I&#8217;m thinking about the renaming part of the deletion process. Would iCloud sync the renaming of the file before the system has an opportunity to issue the removeItemAtPath call? And should the file be managed with an NSFileCoordinator before the call to DTAsyncFileDeleter&#8217;s removeItemAtPath method?</p>
<p>Thanks!</p>
<p>Brendan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linguan by Peter</title>
		<link>http://www.cocoanetics.com/apps/linguan/#comment-4394</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 08 May 2012 13:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?post_type=apps&#038;p=5654#comment-4394</guid>
		<description>A guide to how best to do this for the Settings bundle would be much appreciated, as it is something most users of Linguan will need to do.

Integrating this within Linguan would obviously be the optimum user experience.</description>
		<content:encoded><![CDATA[<p>A guide to how best to do this for the Settings bundle would be much appreciated, as it is something most users of Linguan will need to do.</p>
<p>Integrating this within Linguan would obviously be the optimum user experience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linguan by Peter</title>
		<link>http://www.cocoanetics.com/apps/linguan/#comment-4393</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 08 May 2012 13:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?post_type=apps&#038;p=5654#comment-4393</guid>
		<description>Ah, I was just about to ask this myself, as adding settings would certainly help. 

OK I&#039;ll see if I can do that.

Other than that, Linguan is working great for me- well done</description>
		<content:encoded><![CDATA[<p>Ah, I was just about to ask this myself, as adding settings would certainly help. </p>
<p>OK I&#8217;ll see if I can do that.</p>
<p>Other than that, Linguan is working great for me- well done</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DTRichTextEditor by Drops</title>
		<link>http://www.cocoanetics.com/parts/dtrichtexteditor/#comment-4392</link>
		<dc:creator>Drops</dc:creator>
		<pubDate>Mon, 07 May 2012 20:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?post_type=parts&#038;p=5345#comment-4392</guid>
		<description>Text alignment: YES
Lists: work in progress
Asian input support: YES
Tabs: only what you directly set in CTParagraphStyle, no convenience methods yet</description>
		<content:encoded><![CDATA[<p>Text alignment: YES<br />
Lists: work in progress<br />
Asian input support: YES<br />
Tabs: only what you directly set in CTParagraphStyle, no convenience methods yet</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DTRichTextEditor by Nick</title>
		<link>http://www.cocoanetics.com/parts/dtrichtexteditor/#comment-4391</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 07 May 2012 19:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?post_type=parts&#038;p=5345#comment-4391</guid>
		<description>Does this handle things like text alignment, lists (bullets, numbers) and tabs and have full support for languages like japanese?

thanks
Nick</description>
		<content:encoded><![CDATA[<p>Does this handle things like text alignment, lists (bullets, numbers) and tabs and have full support for languages like japanese?</p>
<p>thanks<br />
Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DTBannerManager by Weird ARC error And The Invisible Header &#124; Cocoanetics</title>
		<link>http://www.cocoanetics.com/2010/08/dtbannermanager/#comment-4390</link>
		<dc:creator>Weird ARC error And The Invisible Header &#124; Cocoanetics</dc:creator>
		<pubDate>Mon, 07 May 2012 17:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=2949#comment-4390</guid>
		<description>[...] = [];}There&#8217;s a bug &#8211; it seems &#8211; in Xcode 4.3.2 that was causing an issue with my DTBannerManager component. I&#8217;m documenting the workaround here and how to recognize that you are experiencing [...]</description>
		<content:encoded><![CDATA[<p>[...] = [];}There&#8217;s a bug &#8211; it seems &#8211; in Xcode 4.3.2 that was causing an issue with my DTBannerManager component. I&#8217;m documenting the workaround here and how to recognize that you are experiencing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Containing ViewControllers by Drops</title>
		<link>http://www.cocoanetics.com/2012/04/containing-viewcontrollers/#comment-4388</link>
		<dc:creator>Drops</dc:creator>
		<pubDate>Sun, 06 May 2012 09:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cocoanetics.com/?p=6225#comment-4388</guid>
		<description>The same functionality as modal view controller presenting you can build yourself with the view controller containment methods available as of iOS 5.</description>
		<content:encoded><![CDATA[<p>The same functionality as modal view controller presenting you can build yourself with the view controller containment methods available as of iOS 5.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

