Jump to content

First iPhone App - 2 days into Mac-venture!


Recommended Posts

Posted (edited)

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 :D

 

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! :D :getmecoat:

 

[ATTACH=CONFIG]11083[/ATTACH] <- Bigger pic!

 

attachment.php?attachmentid=11082&d=1314554918

 

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

 

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

 

Steve

Screen Shot 2011-08-28 at 19.02.10.png

Edited by Steve21
Posted
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?
Posted (edited)

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.

Edited by SYNACK
Posted

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

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...