views:

18

answers:

0

I have been reading and experimenting with allowing links in a custom drawn NSCell for the last few days and have basically got nothing usable, there's always issues with each approach.

Does anyone know of a way of doing this that works?

I am custom drawing the NSCell using - (void)drawInteriorWithFrame:(NSRect)theCellFrame inView:(NSView *)theControlViewm

The NSCell is just a variable height block of text with links inside it, some cells have links, some do not.

I've tried using nsattributedstring with NSLinkAttributeName

I've tried intercepting all hits to the cell and then trying to match up where they clicked to where the link would be in the text but that never works out.

I've basically tried all suggestions that I could find on all boards but most comments are old so I'm hoping someone has figured out a good way to do this.

Thanks, David