Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
July 21, 2017, 01:54:02 AM *
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
  Print  
Author Topic: Program 19.2  (Read 14453 times)
StrayCatSgp
Newbie
*
Posts: 4


Email
« 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'

Logged
BrianLawson
Sr. Member
****
Posts: 262


Email
« 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.
Logged
Pages: [1]   Go Up
  Print  
 
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 classroomM.com. All rights reserved.