iphone - Converting HTTP Response (Java "Properties" stream format) in to NSDictionary -


I am working on the iphone application which contains the HTTP request and response.

The nature of the response is the key / value format compatible with the Java "Properties" stream format.

I want to store feedback in an NSDictionay. You can suggest me to do this in any way

thanks

sangee

edit:?

Thanks guyz for the quick reply !!!

Do they have other ways to store them in the NSDTV?

I just want to store the name and description of the album in an array like this:

  variable = [wrwr, dsf, my album];  

Can you please tell me whether this is possible or not?

Thanks again !!!

It got me to this response to my HTTP request ...

  GR2PROTO debug_album = debug_gallery_version = debug_user = admin debug_user_type = Gallery_User debug_user_already_logged_in = server_version = 2.12 Status = 0 STATUS_TEXT = Login Successful. # GR2PROTO debug_album = debug_gallery_version = debug_user = admin debug_user_type = Gallery_User debug_user_already_logged_in = 1 album.name.1 = wrwr album.title.1 = wrwr album.summary.1 = album.parent.1 = 0 album.resize_size.1 = 640 Albums .thumb_size.1 = 100 album.perms.add.1 = true album.perms.write.1 = true album.perms.del_item.1 = true album.perms.del_alb.1 = true album.perms.create_sub.1 = true album.info.extrafields.1 = Description album.name.2 = dsf album.title.2 = dsf album.summary.2 = album.parent.2 = 0 album.resize_size.2 = 640 album.thumb_size.2 = 100 album.perms.add.2 = true album.perms.write.2 = true album.perms.del_item.2 = true album.perms.del_alb.2 = true album.perms.create_sub.2 = true album.info. Extrafields.2 = Description album.name.3 = My album album.title.3 = My album album.summary.3 = album.parent.3 = 0 album.resize_size.3 = 640 album.thumb_size.3 = 100 Albums Perms .add.3 = true album. perms.write.3 = true album. perms.del_item.3 = true album. perms.del_alb.3 = true album. perms.create_sub.3 = true album.info.extrafields.3 = Description  

) and using it or a similar parser. If you can not really do it, then you have to apply your parser - take a look.


Comments