Tooltip Question
Tooltip Question
- Subject: Tooltip Question
- From: Ryan Stevens <email@hidden>
- Date: Sun, 25 May 2003 11:57:39 -0700
I've mostly got my NSTableView to display tooltips as I like but
there's one nagging issue...
I can't return nil from view:stringForToolTip:point:userData:!?!
If the mouse is over a row where there's no data I don't need/want a
tooltip. Returning an empty string gives me this little useless
tooltip. Returning nil gives me these errors:
[NSCFString replaceCharactersInRange:withString:]: nil string (or
other) argument
*** Assertion failure in -[NSMutableRLEArray
replaceObjectsInRange:withObject:length:],
String.subproj/NSAttributedString.m:1115
Delete invalid attribute range 121,29 (length 121)
So, is there any way around this? Will I have to attempt to pose as
NSToolTipManager just to keep from getting a tooltip when I don't need
it?
_______________________________________________
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.