bustoutsolutions / siesta

The civilized way to write REST API clients for iOS / macOS
https://bustoutsolutions.github.io/siesta/
MIT License
2.19k stars 159 forks source link

Add OS X support #27

Closed pcantrell closed 8 years ago

pcantrell commented 8 years ago

(Looks like @onekiloparsec may be working on this on a fork?)

onekiloparsec commented 8 years ago

Hi. Yes I did a fork because I needed an OSX target. It is not entirely obvious since there are some UIKit stuff involved. As for now, I still have to make it work for my project. But as soon as I can, I'll make a pull request.

pcantrell commented 8 years ago

Sounds great. Send the PR once you feel like it’s basically working, even if it’s not perfect, and I’ll review it.

The UIKit stuff should be limited to the two UI classes (ResourceStatusOverlay and RemoteImageView) … right? You should be able to just remove those files from the OS X build target.

pcantrell commented 8 years ago

Ah, no, looking it over, I see that there’s also a mention of UIImage in the response transformers, and a mention of UIApplicationDidReceiveMemoryWarningNotification in the weak cache. That second one is problematic, since Siesta relies on the low memory warning to keep the cache from growing without bound. I’ll have to implement the LRU cache eviction I’ve been avoiding to make that work….

pcantrell commented 8 years ago

Depends on #31

pcantrell commented 8 years ago

Fixed in #56