I placed an updated version of Mugshot here. This version fixes the two crashers that users reported – the previous release would crash if a user had zero photosets or zero contacts. Chalk it up to bad unit testing, which shouldn’t be a problem now. I’ve got a full suite of OCUnit tests set up across my most heavily used flickr methods.
Enjoy – and please let me know if you have feedback.
Hey! I see you’ve got some Cocoa flickr code. You might be interested in my Cocoa flickr code: http://www.stuffonfire.com/2006/01/tickr_for_flickr_10_v6.html.
I haven’t made the code public for the app yet, and scanning the flickr development group, I think I probably took the lightest-weight approach of any of the posts I saw — using NSProxy and forwardInvocation to build URLs for REST queries. Either way, lemme know what you think.
I downloaded your app and gave it a try – pretty cool. I like it. The “FlickrKit” that Mugshot uses is pretty simple right now and isn’t totally separated from the Mugshot code. But you basically give it the arguments, and it gives you back an NSDictionary that represents the reply from flickr – in exactly the same structure as the flickr response xml. For example, you get a NSDict called “response” that has a key-value pair called “stat” that you can read to determine whether the call was successful. You may also have a key-value pair called “photos” depending on the method you called. You can also choose whether you want the results returned to you directly, whether you want the kit to callback to another method or whether you want it to execute the flickr method in another thread and then call you back.
really nice app, just found it. cool thing is that i can display all my photos from the very first to the recent ones on one page. really cool
but please, you guys, if you have anything similar to flickr api kits for cocoa/objective-c, release your sourcecode. im trying to get into it, and something like this would really help me, otherwise it would just be re-inventing the wheel over and over again for something as dull as implementing calls to the flickr api.