Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-02-2009, 10:59 AM   #3 (permalink)
fontecir
New Member
 
Join Date: Feb 2009
Posts: 11
fontecir is on a distinguished road
Default Let me explain...

Quote:
Originally Posted by RickMaddy View Post
You can't really. What are you actually trying to accomplish with the keys and values?

You can get the keys as an array and sort it. Then iterate over the sorted key array and use each key to get the value from the original dictionary. But I don't know if that solves what you are trying to do.
Here is the whole story:

1. I retrieve elements from my SQLITE database sorted and place these elements in a array of objects. All good here.

2. I then traverse the array using an NSEnumerator

Right here I realized I lost the sorting I got from the database. Somehow the Enumerator sorts by default on when the objects were created.

So now I'm trying to resort the array because I dont want to pay for going to the database.

So, my real question is how can I traverse the array without loosing the order.
fontecir is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,634
Threads: 94,095
Posts: 402,796
Top Poster: BrianSlick (7,990)
Welcome to our newest member, nyoe
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:10 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.