Need help from someone with Obj-c experience/iphone dev

Discussion in 'Off Topic Discussion' started by Twimfy, Apr 4, 2009.

  1. Twimfy

    Twimfy Site Supporter 2015

    Joined:
    Apr 10, 2006
    Messages:
    3,570
    Likes Received:
    32
    Content deleted. Finally figured it out (sort of). Need to protect my idea if I can.

    Thanks for the help people.
     
    Last edited: Apr 4, 2009
  2. GaijinPunch

    GaijinPunch Lemon Party Organizer and Promoter

    Joined:
    Mar 13, 2004
    Messages:
    10,999
    Likes Received:
    75
    I don't know dick for X-code or whatever iPhone uses, but in any other langauge, I would:
    1: Read what I needed to from a file.
    2: Put each "line" into a an array, vector, or some other type of container
    3: Read the line I need (last one) and do something.

    I still don't know exactly what you're doing. You lost me at that fruit tangent. If I'm to understand this, you've got a bunch of data to display: Album, Artist, Song.

    In C++, I would probably define my own class of album type, artist type, and song type. The artist type would have a container with albums types . The album type would have a container of song types. In C++ I'd use a vector as it can dynamically grow (easily). Then, you just have to have something to parse the data and populate the containers.

    EDIT: I understand a bit more now. The last string in the XML file is basically the string in which you're searching, right? That will have an impact on your data structure. In my example, if that is a song (and no artist or album to cross-reference against) you have to loop internally through 3 containers. Can get taxing.
     
    Last edited: Apr 4, 2009
  3. Twimfy

    Twimfy Site Supporter 2015

    Joined:
    Apr 10, 2006
    Messages:
    3,570
    Likes Received:
    32
    Content deleted. Finally figured it out (sort of). Need to protect my idea if I can.

    Thanks for the help people.
     
    Last edited: Apr 4, 2009
  4. GaijinPunch

    GaijinPunch Lemon Party Organizer and Promoter

    Joined:
    Mar 13, 2004
    Messages:
    10,999
    Likes Received:
    75
    So basically you need to recursively go through the XML file, and list everything in the 'list view' except for the actual game items themselves. If I'm not mistaken, it sounds like your games will always be the same depth from the top, right? System->Game Name->Game Info (3rd item). Since you know the 3rd level is always a game, you don't have to do anything too spiffy. Just note that on the 3rd level of the loop, the display is different.
     
  5. Twimfy

    Twimfy Site Supporter 2015

    Joined:
    Apr 10, 2006
    Messages:
    3,570
    Likes Received:
    32
    Content deleted. Finally figured it out (sort of). Need to protect my idea if I can.

    Thanks for the help people.
     
    Last edited: Apr 4, 2009
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page