Welcome, Guest. Please login or register.
Did you miss your activation email?
April 28, 2017, 06:58:37 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Programming in Objective-C, 4th edition
| |-+ Chapter 19
| | |-+ Program 19.2
Pages: [1] Go Down
Print
Author Topic: Program 19.2 (Read 13797 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:



Login with username, password and session length

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 (c) 2009 classroomM.com. All rights reserved.