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

saleh.hi.62

macrumors member
Original poster
Jul 25, 2011
95
0
guys, here is the scenario. i have a list of Strings (like an array). but each node of this list should refer to an string array.

As you can see in the below figure you can see, each website has a list which contain all the web pages' links.

what is the best way to implement it in Objective-C ?
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    16.2 KB · Views: 119
but take note that the Queue of websites needs to contains URL plus a conetion to the list of URLs

Then either create a custom object that represents each item in the queue or use a NSDictionary for each item in the queue with known keys for each attribute you need to store.
 
Then either create a custom object that represents each item in the queue or use a NSDictionary for each item in the queue with known keys for each attribute you need to store.

thank you for your guidance, i am very beginner in objective c!

if it's possible, may you present me an example code here? i will bed so thankful :)
 
thank you for your guidance, i am very beginner in objective c!

if it's possible, may you present me an example code here? i will bed so thankful :)

Start XCode 4, Command-Shift-2, and look around. You'll find plenty of examples. If you can't find any sample code there, find a different job.
 
Last edited by a moderator:
Start XCode 4, Command-Shift-2, and look around. You'll find plenty of examples. If you can't find any sample code there, find a different job.

ok i will try to say what i have thought, i will make a Arrray with NSDictionary. in each item:

KEY= Website name
and
VALUE= another array which store the name of webpages.

how can i store the address of new array(webpage's array) into the VALUE field?
 
ok i will try to say what i have thought, i will make a Arrray with NSDictionary. in each item:

KEY= Website name
and
VALUE= another array which store the name of webpages.

how can i store the address of new array(webpage's array) into the VALUE field?

You store a new NSArray as the value. You can use whatever sort of object you'd like for the value.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.