Skip navigation.
 
mlProblem in Mouse over
FROM : ADIL SALEEM
DATE : Mon Mar 10 12:47:04 2008

Hi,

What i am trying to do is that if mouse pointer is
placed over a certain button in the GUI, then the text
in a text field should be changed. I have subclassed
NSButton and assigned this custom class to my button.
>From this class i have been able to receive mouse

events and it works fine. But the problem is that once
it is detected that the mouse is over the button, the
text in the text field does not change. I have made an
outlet from button's custom class to that text field.
But the text in the text field does not change.

What i am doing is something like this...

- (void)mouseEntered:(NSEvent *)theEvent
{
  [textField setStringValue:@"New Value"];
}

- (void)mouseExited:(NSEvent *)theEvent
{
  [textField setStringValue:@"Old Value"];
}



Thanx


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs

Related mailsAuthorDate
mlProblem in Mouse over ADIL SALEEM Mar 10, 12:47
mlRe: Problem in Mouse over Stephane Sudre Mar 10, 14:38