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

[SOLVED] Re: [again] Add dynamically tool tip in NSMatrix


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

Sorry all : after reading the documentation again i found (NSMatrix) :
setToolTip:forCell:

that it works perfectly for what i want to do....
Sorry again,
K.
Le mercredi 17 juillet 2002, ` 08:12 PM, kubernan a icrit :

> 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.
_______________________________________________
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.

References: 
 >[again] Add dynamically tool tip in NSMatrix (From: kubernan <email@hidden>)

  • Prev by Date: removeObserver
  • Next by Date: Re: NSScreen visibleFrame
  • Previous by thread: [again] Add dynamically tool tip in NSMatrix
  • Next by thread: removeObserver
  • Index(es):
    • Date
    • Thread