• 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
[again] Add dynamically tool tip in NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[again] Add dynamically tool tip in NSMatrix


  • Subject: [again] Add dynamically tool tip in NSMatrix
  • From: kubernan <email@hidden>
  • Date: Wed, 17 Jul 2002 20:12:52 +0200

Hello,

I decided to submit again my problem because it was previously dated to
2001

Hello,

Something goes wrong with my dynamically add of tool tip text :
I have an NSMatrix of text fields (several rows, only one column)
where each tool tip cell text depends on several conditions.
For that i use :

[[modalField superview] addToolTipRect:[modalField frame]
owner:self userData:nil];

where modalField is the matrix that contains the text field cells.
To choose the appropriate tool tip's text for each cell i use that :

- (NSString *)view:(NSView *)view stringForToolTip:(NSToolTipTag)tag
point:(NSPoint)point userData:(void *)data
{
int row, column;
if ([modalField getRow:&row column:&column forPoint:point])
{
NSLog(@"Value of row : %d ", row);
}
else
NSLog(@"Not found");
}

The problem is i always have the "Not found" message each time mouse
enter in a cell of the modalField matrix.
Because of that i'm not able to choose which tool tip text should be
associated to the pointed cell.
Any idea ?

Thx a lot.
K.
_______________________________________________
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:
    • [SOLVED] Re: [again] Add dynamically tool tip in NSMatrix
      • From: kubernan <email@hidden>
  • Prev by Date: Re: [Seriously OT]Mac.com 60 days and counting
  • Next by Date: Re: [Seriously OT]Mac.com 60 days and counting
  • Previous by thread: Re: [Seriously OT]Mac.com 60 days and counting
  • Next by thread: [SOLVED] Re: [again] Add dynamically tool tip in NSMatrix
  • Index(es):
    • Date
    • Thread