Cocoalicious 1.0b43
I’ve kind of been asleep at the Cocoalicious wheel for awhile now, which is a shame because not only have there been some well known problems, I also left the CVS repository in a bad enough state to prevent anyone besides me from fixing said problems. What can I say: it’s summertime, and the living is easy.
Fortunately, I have finally managed to scrape together enough time to get the two biggest problems (a crasher, and a bug that would allow the post cache on disk to be overwritten by blank data in some conditions) fixed. Check out Cocoalicious 1.0b43 for the fixes.
In case anyone’s wondering, the crashing problem that I got so many complaints about had to do with URLs containing literal percent signs, such as the following:
http://www.urbandictionary.com/define.php?term=%s
Basically, the issue was that if you pass NSURL’s URLWithString: method a URL like that, it will simply return nil instead of a new NSURL, because it tries to interpret the “%s” as an escape code, and it’s not a valid escape code. I wasn’t checking for nil before I tried to insert the new URL into an NSArray, which is what would actually cause the crash. The solution would seem simple: just escape the percent sign before you turn the string into a URL object, so you end up with:
http://www.urbandictionary.com/define.php?term=%25s
And this does indeed work, until you submit the URL to del.icio.us and then re-download it. When you get this URL back in the del.icio.us post XML, what you end up with is:
http://www.urbandictionary.com/define.php?term=%2525s
In other words, del.icio.us escaped the percent sign again (”%25″ is the escape code for the percent sign), which means if you edit that post in Cocoalicious and re-submit it, you’ll end up with an incorrect URL.
I’m not sure whether I can consider this a bug or not (it seems to me that del.icio.us shouldn’t naively re-escape the percent signs at the beginning of valid escape sequences), but until I figure out what to do about it, this is going to be a known issue in Cocoalicious.
June 11th, 2006 at 3:38 pm
I haven’t been able to get Cocoalicious to work for the last few weeks. The activity spinner just quits after a few seconds and none of my bookmarks ever show up. I wonder if it times out before it can retrieve all ~4500 bookmarks, or if it’s a problem on del.icio.us’ end.
June 11th, 2006 at 8:28 pm
Always with the fucking ampersands^W percents…
June 17th, 2006 at 10:58 pm
Hi, I checked out cocoalicious code from sf.net and try to build it.
But Xcode claims that “SFHFNetworkUtils.h” is missing.
It seems to left unchecked. Would you check it in ?
I hope to play with the code.
Thank you.
June 22nd, 2006 at 6:24 am
You mention the CVS….
I checked it out from Sourceforge and commented out the import “SFHFNetworkUtils.h” line (which used to be enough to get it to build/run) but now I get this:
[Session started at 2006-06-22 10:24:02 -0400.]
dyld: Library not loaded: @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle
Referenced from: /Users/ngzax/Code/Obj-C/cocoalicious/build/Development/Cocoalicious.app/Contents/MacOS/Cocoalicious
Reason: image not found
Cocoal.icio.us has exited due to signal 5 (SIGTRAP).
Help?
Thanks,
Daryl
June 22nd, 2006 at 7:07 am
Interestingly enough, I *can* run the app created in build/Development/, the error I posted above only happens when I “Build and Run…” from XCode. I am not an experienced Mac developer (this is the only project I have ever build using XCode) so I don’t know what is going on here.
Thanks again!
P.S. I also needed to delete 2 file references (”OAGradientTableView.*) to missing files and for some reason I had to have an already built version of Cocoalicious.app on my machine.
June 24th, 2006 at 8:43 am
Hi. Thank you for your advice! It is very helpful.
I tried according to your post above:
- commented out #import “SFHFNetworkUtils.h”
- remove references to missing files.
and finally succeeded to build the app.
Then, I have same problem… I can not run it on XCode (”Bild and Go”) …
But It works anyway. thanks!
I hope the modification to check into the CVS so that
we make it immediately compilable.
regards.
July 1st, 2006 at 9:46 pm
hi,
i missed the Great Feature to Import all Bookmarks from Safari. Can u Add this Function ?
Maybe with a option so all imported Bookmarks wouldn’t be sync with del.icio.us until u taged the Bookmark with more than 0
Best wishes
The Maverick