- windowDidLoad not getting called !
- windowDidLoad not getting called !
- Subject: - windowDidLoad not getting called !
- From: Arjun SM <email@hidden>
- Date: Mon, 8 Jun 2009 14:44:56 +0530
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 (email@hidden)
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:
This email sent to email@hidden