Re: NSTableView - Leopard - Tooltips
Re: NSTableView - Leopard - Tooltips
- Subject: Re: NSTableView - Leopard - Tooltips
- From: Manfred Schwind <email@hidden>
- Date: Thu, 29 Nov 2007 15:47:50 +0100
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