• 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
NSToolTipAttributeName won't save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSToolTipAttributeName won't save


  • Subject: NSToolTipAttributeName won't save
  • From: Jeremy Dronfield <email@hidden>
  • Date: Fri, 27 Feb 2004 21:17:21 +0000

I'm setting the attributes for hyperlinked text with the following dictionary:

NSDictionary *linkAttributes = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:preservedFont, blue, url, [NSNumber numberWithInt:NSUnderlineStyleSingle], [NSCursor pointingHandCursor], [NSString stringWithFormat:@"Go to %@", url], nil] forKeys:[NSArray arrayWithObjects:NSFontAttributeName, NSForegroundColorAttributeName, NSLinkAttributeName, NSUnderlineStyleAttributeName, NSCursorAttributeName, NSToolTipAttributeName, nil]];

It works - the linked text works when clicked, the hand cursor displays, and the tooltip displays. Until the text is saved and reloaded. All the attributes are preserved, except the tooltip, which has completely vanished. Is this a known bug?

-Jeremy

========================================
email@hidden

theLocustFarm.net:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSToolTipAttributeName won't save
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: smaller icon
  • Next by Date: Re: NSTableView - Responder - 'Focus'
  • Previous by thread: Re: smaller icon
  • Next by thread: Re: NSToolTipAttributeName won't save
  • Index(es):
    • Date
    • Thread