NSToolTipAttributeName won't save
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.