Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSTableView - Leopard - Tooltips
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView - Leopard - Tooltips



Under Leopard - how do I suppress the NSTableView tooltips that I do not want to see?

I have carefully crafted my tableViews to display and be edited as multi-line cells and do not want nor need those tooltips getting in the way. Obviously it must be in the documentation somewhere but I cannot find it.

I had the same problem. This is a new feature in Leopard - these are not really tooltips. They just look like tooltips. It's a new feature of NSCell and it's called "expansionFrame". NSTextFieldCells have a default implementation of the expansion drawing, so they draw expanded just like tooltips as soon as there text gets truncated.


See also:
http://developer.apple.com/releasenotes/Cocoa/AppKit.html
"NSCell Automatic Expansion ToolTip Frame".

Or look for expansionFrameWithFrame: inView: in the documentation.

Implement it in your cell subclass and return NSZeroRect to disable this tooltip like stuff.

Regards,
Mani
--
http://www.mani.de
iVolume - Loudness adjustment for iTunes.
LittleSecrets - The encrypted notepad.


_______________________________________________

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


References: 
 >NSTableView - Leopard - Tooltips (From: Keith Wilson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.