• 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: Tool tips in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tool tips in NSTableView


  • Subject: Re: Tool tips in NSTableView
  • From: Max Horn <email@hidden>
  • Date: Wed, 23 May 2001 20:35:32 +0200

At 10:36 Uhr -0700 23.05.2001, Chuck Pisula wrote:
My guess is that it is either a) in the NSTableViews coord system, or b) the windows coordinate system.

If I had to bet, I'd pick (a).

I hope you are right ;) I'll try it out - but I found another big caveat:

the tooltips are based on static rects. This is in a static nstableview. But it is already a problem in a static NSOutlineView, where the user can expand/collapse folders at will. This would cause many, if not even all cells to change their position.

So whenever data is add/removed from the view, or whenever a folder is expanded, collapsed, I would have to remove many many tooltip rects, and re-add them

Not only is this complicated, it requires me to hook in in multple places just to determine these changes occured; I don't even speak about the vast overhead.

To me it looks as if Apple really should add some direct support for this - I think what I want to achieve is not very unusal, is it?

it seems a simple delegate function could be added for this. Something like


- (NSString *)tableView:(NSTableView *)aTableView
toolTipStringForTableColumn:(NSTableColumn *)aTableColumn
row:(int) rowIndex;


and something similiar for outlineview...


Or maybe I once more overlook something obvious, and there is already a simple way to achieve what I want directly ;)

Max
--
-----------------------------------------------
Max Horn
C++/ObjC/Java Developer

email: <mailto:email@hidden>
phone: (+49) 6151-494890


  • Prev by Date: Re: Type/Creator Codes
  • Next by Date: Re: EOF (was Re: Cocoa CGI)
  • Previous by thread: Re: Tool tips in NSTableView
  • Next by thread: Stupid question
  • Index(es):
    • Date
    • Thread