<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-371408380585915800.post7355462799817533271..comments</id><updated>2010-08-04T04:00:22.586-07:00</updated><category term='C++'/><category term='self promotion'/><category term='code management'/><category term='Lion'/><category term='UIKit'/><category term='CoreAudio'/><category term='Cocoa Touch'/><category term='Xcode'/><category term='fun hacks'/><category term='CoreGraphics'/><category term='Objective-C'/><category term='Standard C'/><category term='graphics'/><category term='performance tests'/><category term='Core Data'/><category term='Foundation'/><category term='object-oriented design'/><category term='testing'/><category term='numerical methods'/><category term='WebKit'/><category term='CoreAnimation'/><category term='Snow Leopard'/><category term='AppKit'/><title type='text'>Comments on Cocoa with Love: OrderedDictionary: Subclassing a Cocoa class clust...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cocoawithlove.com/feeds/7355462799817533271/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html'/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-5023132195867615029</id><published>2010-08-04T04:00:21.000-07:00</published><updated>2010-08-04T04:00:21.000-07:00</updated><title type='text'>You can&amp;#39;t, because allKeys implementation is e...</title><content type='html'>You can&amp;#39;t, because allKeys implementation is eventually calling the keyEnumerator method.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default/5023132195867615029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default/5023132195867615029'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html?showComment=1280919621000#c5023132195867615029' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-7355462799817533271' source='http://www.blogger.com/feeds/371408380585915800/posts/default/7355462799817533271' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-1635548712558006720</id><published>2010-06-27T19:44:54.000-07:00</published><updated>2010-06-27T19:44:54.000-07:00</updated><title type='text'>Bob, I was thinking the same thing.  I&amp;#39;m using...</title><content type='html'>Bob, I was thinking the same thing.  I&amp;#39;m using an NSDictionary of NSDictionaries and using keysSortedByValueUsingSelector with various selectors (@selector(compareByAge:), @selector(compareByHeight:), etc).&lt;br /&gt;&lt;br /&gt;I actually found some code that does exactly that (look at the last few lines)&lt;br /&gt;http://svn.gna.org/svn/gnustep/apps/gworkspace/trunk/GWMetadata/Preferences/CategoriesEditor.m&lt;br /&gt;&lt;br /&gt;@implementation NSDictionary (CategorySort)&lt;br /&gt;&lt;br /&gt;- (NSComparisonResult)compareAccordingToIndex:(NSDictionary *)dict&lt;br /&gt;{&lt;br /&gt;  NSNumber *p1 = [self objectForKey: @&amp;quot;index&amp;quot;];&lt;br /&gt;  NSNumber *p2 = [dict objectForKey: @&amp;quot;index&amp;quot;];&lt;br /&gt;  return [p1 compare: p2];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@end</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default/1635548712558006720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default/1635548712558006720'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html?showComment=1277693094000#c1635548712558006720' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-7355462799817533271' source='http://www.blogger.com/feeds/371408380585915800/posts/default/7355462799817533271' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-9026094166499825417</id><published>2010-04-25T23:58:00.000-07:00</published><updated>2010-04-25T23:58:00.000-07:00</updated><title type='text'>You should parse the va_list and add each object t...</title><content type='html'>You should parse the va_list and add each object to the dictionary individually using setObject:forKey:.&lt;br /&gt;&lt;br /&gt;If you want information about parsing a va_list have a look here:&lt;br /&gt;&lt;br /&gt;http://cocoawithlove.com/2009/05/variable-argument-lists-in-cocoa.html&lt;br /&gt;&lt;br /&gt;especially at the &amp;quot;Implementing variable arguments for your own methods&amp;quot; section.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default/9026094166499825417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default/9026094166499825417'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html?showComment=1272265080000#c9026094166499825417' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-7355462799817533271' source='http://www.blogger.com/feeds/371408380585915800/posts/default/7355462799817533271' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-3063004827993817684</id><published>2010-04-25T23:37:11.000-07:00</published><updated>2010-04-25T23:37:11.000-07:00</updated><title type='text'>Matt, thanks for the great post. I&amp;#39;m particula...</title><content type='html'>Matt, thanks for the great post. I&amp;#39;m particularly interested in overriding the function, initWithObjectsAndKeys. Unfortunately, it takes a variable number of arrays, as denoted by the ellipsis in the function definition:&lt;br /&gt;&lt;br /&gt;- (id)initWithObjectsAndKeys:(id)firstObject, ... {&lt;br /&gt;&lt;br /&gt;Is there any way of passing the function parameters along to [dictionary initWithObjectsAndKeys...]?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default/3063004827993817684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/7355462799817533271/comments/default/3063004827993817684'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html?showComment=1272263831000#c3063004827993817684' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-7355462799817533271' source='http://www.blogger.com/feeds/371408380585915800/posts/default/7355462799817533271' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry></feed>
