• 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
Re: disabling tooltips table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disabling tooltips table view


  • Subject: Re: disabling tooltips table view
  • From: Graham Cox <email@hidden>
  • Date: Tue, 18 Aug 2009 21:52:39 +1000


On 18/08/2009, at 9:24 PM, Rick C. wrote:

hello,

i'm probably overlooking something simple but if someone could point me in the right direction on how to disable tooltips in my table view i would appreciate it. i have tried all the ways i could find through documentation/google and they still seem to appear although randomly. thank you very much,


From the docs for NStableView's delegate methods. Note the last sentence.



tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:
Returns a string that is displayed as a tooltip for aCell in aTableColumn of aTableView.


- (NSString *)tableView:(NSTableView *)aTableView toolTipForCell: (NSCell *)aCell rect:(NSRectPointer)recttableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation

Discussion
The row is the row of the cell and aTableColumn is the NSTableColumn that contains the cell. The rect represents the proposed active area of the tooltip. By default, rect is computed as [cell drawingRectForBounds:cellFrame]. You can modify rect to provide an alternative active area. Return nil or the empty string if no tooltip is desired.




--Graham




_______________________________________________

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


  • Follow-Ups:
    • Re: disabling tooltips table view
      • From: "Rick C." <email@hidden>
References: 
 >disabling tooltips table view (From: "Rick C." <email@hidden>)

  • Prev by Date: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • Next by Date: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • Previous by thread: disabling tooltips table view
  • Next by thread: Re: disabling tooltips table view
  • Index(es):
    • Date
    • Thread