Problem in Mouse over
Problem in Mouse over
- Subject: Problem in Mouse over
- From: ADIL SALEEM <email@hidden>
- Date: Mon, 10 Mar 2008 04:47:04 -0700 (PDT)
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
_______________________________________________
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