views:

72

answers:

1

I'm using this category (is that right?) http://www.nightproductions.net/references/dsclickableurltextfield_reference.html#setAttributedStringValue

to implement clickable textfields. I've imported the header file in my controller class and set it's attributed string value like this

NSAttributedString* str = [[NSAttributedString alloc] initWithString:@"http://www.yahoo.com"];
[url setAttributedStringValue:(NSAttributedString *)str];

[str release];

The text field is not selectable and not editable.

The text field value is set but it's not clickable and it's not a link.

Thanks in advance.

+1  A: 

You can take a look here: http://developer.apple.com/mac/library/qa/qa2006/qa1487.html

Good luck!

m5h
Thanks. I found out the class I was using wasn't a category so I just used the class itself for the text element.
Chris