• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
- windowDidLoad not getting called !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

- 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

  • Prev by Date: generation of software license keys
  • Next by Date: NSOpenPanel : Resolving the file paths for symbolic links
  • Previous by thread: RE: generation of software license keys
  • Next by thread: NSOpenPanel : Resolving the file paths for symbolic links
  • Index(es):
    • Date
    • Thread