+ Post New Thread
Results 1 to 9 of 9
Coding Thread, First iPhone App - 2 days into Mac-venture! in Coding and Web Development; As mentioned in Mac thread got my mac on Friday so thought I'd have a play about and see what ...
  1. #1

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179

    First iPhone App - 2 days into Mac-venture!

    As mentioned in Mac thread got my mac on Friday so thought I'd have a play about and see what I can learn over a weekend

    Starting from a complete macnoob on Friday evening, to this afternoon learnt some cocoa, and knocked up a quick "extremely basic app" as below!

    Disclaimer, This is in no way an official app, or related to EduGeek. Just playing around!

    Attachment 11083 <- Bigger pic!



    Disclaimer, This is in no way an official app, or related to EduGeek. Just playing around!

    Just remember, Never say never! Put some time in, and anyone can learn anything hehe

    Steve
    Attached Images Attached Images
    Last edited by Steve21; 28th August 2011 at 07:15 PM.

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,044
    Thank Post
    853
    Thanked 2,666 Times in 2,263 Posts
    Blog Entries
    9
    Rep Power
    767
    Interesting, did your parse out the HTML from the full site or are you passing it through a service to rip out the content before it hits the phone?

  3. #3

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Dunstable
    Posts
    11,760
    Thank Post
    1,623
    Thanked 1,877 Times in 1,395 Posts
    Blog Entries
    2
    Rep Power
    422
    I would assume the latter as otherwise it would be too dense for the app...

  4. #4

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Doing full HTML currently and just cutting what I want out.

    Steve

  5. #5

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,044
    Thank Post
    853
    Thanked 2,666 Times in 2,263 Posts
    Blog Entries
    9
    Rep Power
    767
    Are you using a framework or doing the parsing by hand?

  6. #6

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    All from scratch, just using simple recurrence and looping etc

    Don't even know how to load kits into Xcode yet hehe

    Steve

  7. #7

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,044
    Thank Post
    853
    Thanked 2,666 Times in 2,263 Posts
    Blog Entries
    9
    Rep Power
    767
    Might be helpful: http://blog.objectgraph.com/index.php/2010/02/24/parsing-html-iphone-development/

    edit: the full HTML has a whole bunch of handilly id'ed div tags which should make stripping it out nice and comparitivly easy. I was looking at doing it with a very simmilar library under .net and then chucking that into a webservice so that the hard work could be done on a server and the phone could just request stripped XML from the webservice. There's plenty of horsepower to do it on the phone itself its just a question of memory and bandwidth usage.
    Last edited by SYNACK; 28th August 2011 at 08:11 PM.

  8. #8

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Aye would be a lot nicer using service, but I'd assume under that route you couldnt reply to threads etc, as it'd be one host? Or would you still send data normally just receive stripped down info?

    Will have to take a look at that wrapper looks like it saves lots of work lol

    Steve

  9. #9

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,044
    Thank Post
    853
    Thanked 2,666 Times in 2,263 Posts
    Blog Entries
    9
    Rep Power
    767
    The service can act how you want it to, you could also configure it to grab authentication information for the session and pass that through allowing you to post via a stripped down XML bit aswell. It just means that you need to trust the upstream service. If you host it yourself then this is not an issue, likewise if EG hosts it but you are right full features requires the authentication information.

    Assuming the parsing rules are compatible then is is easy enough to transfer them over to a service modle at a later date if wanted. The one I was using was the HTMLAgilityPack which it looks might be compatible, expression wise with the Apple one above.

    The one issue with HTML scrapeing is if someone changes the html on the server side (site redesign) at which point you have to tweak it a bit.

    Looks like you are doing well though.

SHARE:
+ Post New Thread

Similar Threads

  1. Edu iPhone App
    By mb2k01 in forum New Project Ideas
    Replies: 10
    Last Post: 21st January 2010, 01:47 PM
  2. Iphone App/game giveaway
    By pooley in forum Netbooks, PDA and Phones
    Replies: 0
    Last Post: 3rd December 2009, 12:46 PM
  3. iphone app dev
    By mac_shinobi in forum Mac
    Replies: 3
    Last Post: 14th May 2009, 04:16 PM
  4. Microsoft with a IPhone App
    By rush_tech in forum General Chat
    Replies: 2
    Last Post: 15th December 2008, 08:59 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •