Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
June 23, 2018, 11:48:04 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
Author Topic: Program 19.2  (Read 17806 times)
Posts: 4

« on: November 04, 2012, 01:57:33 AM »

Just a silly question:

Why does the output show the items in reverse order?
I would have expected a result like this (as that was the order in which we entered the key's and descriptions)

abstract class : A class defined so other classes can inherit from it
adopt: To implement  all the methods defined in a protocol
archiving: Storing an object for later use

instead the output starts with 'archiving'

Sr. Member
Posts: 262

« Reply #1 on: January 13, 2014, 07:10:17 PM »

Dictionaries are unordered, there is no guarantee of the order in which a dictionaries entries will be retrieved.
Pages: [1]   Go Up
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 All rights reserved.