Hi all, I have written an application for which in the about box there is a link to a website. Below is the code for it
NSMutableAttributedString *tempCompanyURLString = [[NSMutableAttributedString alloc] initWithString:@"www.mycompany.com"]; // assume string exists NSRange selectedRange = NSMakeRange(0, 14); // assume this is set NSURL *linkURL = [NSURL URLWithString:@"http://www.mycompany.com"]; [tempCompanyURLString beginEditing]; [tempCompanyURLString addAttribute:NSLinkAttributeName value:linkURL range:selectedRange]; [tempCompanyURLString addAttribute:NSForegroundColorAttributeName value:[NSColor blueColor] range:selectedRange]; [tempCompanyURLString addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSSingleUnderlineStyle] range:selectedRange]; [tempCompanyURLString endEditing]; The problem i am facing with the above code is that, if i hover the mouse over the link the pointer doesn't transform to hand symbol and when i click the link its font would change?? Even though i tried to use a windowDidLoad delegate method its not getting called. i am unable to get the desired result of the link not changing the font. please help. thanks, Arjun _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com