Weather Plugin Fixed
Posted 2005 Jan 10After wrestling with dynamically loaded code all day, I have finally fixed the Weather Plugin.
Basically, the problem had something to do with the way the NOAA webservers were responding to the request to download the XML. If I used Cocoa’s built-in initWithContentsOfURL, I got back junk. Downloading by any other method was fine. So, I swapped in the multi-talented CURL wrapper, CURLHandle. However, I wanted to include this framework directly in the plugin so as to obviate the need for downloading CURLHandle separately. Needless to say, getting a framework to dynamically load inside a plugin proved to be difficult for this novice Cocoa programmer. But, with some help from the QS community and some time on CocoaDev, I was able to get it working.
The final trick was to not link against the framework, but still include it in the plugin bundle. You can downloaded the latest version here: MYWeatherPlugin-0.5.qspkg.
Pablo
2005 Jan 12 at 05:15I’m being a pain (sorry), but how do I check the weather with it. That’s what I originally meant. :) Thx.