There's a great example file in the docs that is available through Dash or the 
dev site.

The project file is called Lazy Table Images and it provides a good class for 
bringing in an image from a server asynchronously.

http://developer.apple.com/library/ios/samplecode/LazyTableImages/Introduction/Intro.html

What's really nice though is that it has been updated regularly through its 
lifespan and if you have access to the older versions, you can see how the code 
originally worked, how it was originally structured, the changes in the classes 
when it was updated to use blocks and finally, the changes to make it run using 
ARC.

It's at 1.4 now and uses ARC and blocks, though looking at how the earlier 
iterations worked without blocks is also nice to see and understand.

If you can't find any of the earlier versions and with to look at them, I can 
point you to them, so please feel free to contact me off list.

Speaking of earlier versions of certain files, sometimes reviewing the previous 
version of an Apple Dev file is quite useful.  Is there any convenient way that 
anyone knows of to look at a earlier version of an example file in the dev docs 
besides downloading an older version of Xcode and hoping the dev docs have the 
earlier version?

Cheers.

On Aug 12, 2013, at 11:12 PM, koko wrote:

> 
> I want to get a file from a server into my iPad App.
> 
> If I do http://... it launches Safari.
> 
> I just want the file … what is the proper way to do this?
> 
> -koko
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
> 
> This email sent to z...@mac.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to