It can be quite annoying when an application claims to support an API and actually doesn’t 🙁 I’ve been working on BlogThing off an on for about a week or so. Originally I used a bit of the metaWeblog API and a bit of the MovableType API. I’ve since standardized on metaWeblog and removed the references …
Monthly Archives: February 2006
Accessing the string and attribute data in a NSTextView
NSTextView stores its data in a NSTextStorage object. NSTextStorage descends from NSMutableAttributed string, so that gives us a clue. The easiest thing to do is to make a category on the NSAttributedString class to do whatever it is you want containing something like the following.      NSRange range;     int i;     int L = [self length];                  i = 0;     while(i<L) …
Continue reading “Accessing the string and attribute data in a NSTextView”
I’ve just added automatic image resizing to my blog client
It’s all very exciting 🙂 Here is an example of an auto-resized images I’ve also added code to automatically recognize URLs in the text and convert them to links. For example http://www.automagic-software.com/