Hi guys,

I don't want to take much of your time on this issue, but since I got this rude reply, several guys had sent me mails on the same experiences from this michael-amorose guy(not only in lists.apple.com, but also others like omnigroup).

Thanks to Scott, thank you for your job; I really appreciate it.

Best,

Begin forwarded message:

From: Scott Anguish <[EMAIL PROTECTED]>
Date: August 25, 2008 3:51:16 AM EDT
To: JArod Wen <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: How to control the order of enumerating on a NSDictionary

JArod, can you please forward the message with the headers intact?

thanks

scott


On 25-Aug-08, at 12:22 AM, JArod Wen wrote:

Hi admin,

Could you please check this mail full of discrimination? I have posted a mail to check whether this reply is directly from the Mike in michael-amorose.com.

Thanks.

Begin forwarded message:

From: Mike <[EMAIL PROTECTED]>
Date: August 24, 2008 11:01:17 PM EDT
To: JArod Wen <[EMAIL PROTECTED]>
Subject: Re: How to control the order of enumerating on a NSDictionary
Reply-To: [EMAIL PROTECTED]

You stupid moron. Did you even read Apple's documentation? Apparently not. If you had, you would have learned that dictionaries on OS X do not support ordering. The docs even say that you cannot rely on the ordering of items in a dictionary. If you need ordering, you need to use an NSArray.

Why do Asian people keep trying to be software developers? You people are the worst at software. Japan isn't even good at it. Give it up and get some other job like being a noodle shop owner or something. LOL.

JArod Wen wrote:
Hi Jedis,
I wrote codes to add column information into a NSDictionary and then added each of them into a NSTableView as column. I got the key-value pairs in NSDictionary as following:
      "ang (A)" = 2;
      "dis (D)" = 1;
      "pos (P)" = 0;
      "shp (S)" = 3;
Then I used an enumerator on the keys(strings like "ang (A)") of this dictionary and added each of them into NSTableView. However, the final order of the column is: 2008-08-24 19:16:55.679 Roboplasm[1031:10b] Column added titled pos (P) 2008-08-24 19:16:55.687 Roboplasm[1031:10b] Column added titled shp (S) 2008-08-24 19:16:55.725 Roboplasm[1031:10b] Column added titled dis (D) 2008-08-24 19:16:55.734 Roboplasm[1031:10b] Column added titled ang (A) I want to set the order of the columns as the value of the object in dictionary, so it should be: pos, dis, ang, shp. It should be the problem when enumerating the dictionary, right? How can I control the order of enumerating?
Thanks in advance!
---------------
JArod Wen
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/junklists%40michael-amorose.com This email sent to [EMAIL PROTECTED]

---------------
JArod Wen






---------------
JArod Wen




Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to