• 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
Tooltip Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Tooltip Question
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Safari download window "clear" button
  • Next by Date: Re: Dragging my NSWindow subclass like an ordinary OS X window...
  • Previous by thread: Re: Bug in NSClipView/NSScrollView?
  • Next by thread: Re: Tooltip Question
  • Index(es):
    • Date
    • Thread