Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mahendraraut

macrumors newbie
Original poster
Nov 9, 2011
1
0
I am integrating/syncronising three different API's in one application

first API(1) will provide me the folder(folder(1)_id, folder(1)_name)
second API will provide folder(folder(1)name, parent_folder(1)__id)

I need to keep above in one table and need to compare with third API,
if that contains same folder name as existing folder(folder(1)_name) then keep them as it is and if there are no folders with same name then add it from 1st and 2nd API and vice a versa. there is no limitation on number of folders

I also need to keep track of all for future sync.

what will be optimal way to do this in (i-phone)objective-c?
I heard about the Hash-map, hash-table and Dictionary or I can simply use array for that, can anybody suggest easy/faster way to do this, any existing references? please.
 
NSDicationary and NSSet are implemented as hash tables and will give you a fast and convenient way to tell if a string is present in those containers.

I use NSDictionary all-day every day for a million different tasks. NSSet not as much. It will serve you well to learn how to use it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.