I have a panel with a hyperlink on it. I used some code from Technical Q&A1487 (Embedding Hyperlinks in NSTextField and NSTextView), and to get the hand cursor, I tried both a small subclass of NSTextView, implementing resetCursorRects, and the DSClickableURLText class. In both cases, when my panel comes up, I have to click once on the hyperlink before I see the hand cursor and can go to the URL. I call selectText: self (in fact, I have to, or I can't ever get to the URL). I've also tried calling makeFirstResponder on the window. But I still have to click on it once before it works.
Is this just an anomaly in the OS or the kit? Is there a way I can get this to work programmatically, but simulating a click?
Thanks
Is this just an anomaly in the OS or the kit? Is there a way I can get this to work programmatically, but simulating a click?
Thanks