Ideas to Use F-Script to Explore ObjectiveFlickr
Friday, March 9th, 2007I fell in love with F-Script instantly. I have heard about it but only started playing with it since yesterday.
Exploring ObjectiveFlickr with F-Script, though, may require a bit hack. We’ll need to create a new class on the fly using FSClass so that we can have delegate and callbacks that receive Flickr invocation returns.
Another approach is to create a new class in OF, let’s call it OFInvocationResponse (echoing OF/Ruby’s FlickrResponse class), we can put error handling and XML data storage into it, and make them delegates. With a new class that acts as data container, we might even be able to proceed on extending ObjectiveFlickr and make it support synchronous method call.
I’ll try both approaches and see which works better. Eventually we should be able to fiddle with ObjectiveFlickr/ObjC as easily as with ObjectiveFlickr/Ruby. Things like irb (interactive Ruby) is Objective-C developer’s envy. F-Script comes in just right.