Mouse and buttons
Mouse and buttons
- Subject: Mouse and buttons
- From: "Peter Karlsson" <email@hidden>
- Date: Thu, 20 Mar 2003 10:47:57 +0000
Dear list!
Look at this code snippet:
- (IBAction)playbuttonAction:(id)sender
{
NSImage *playdown = [NSImage imageNamed:@"playdown.tif"];
[playbuttonOutlet setImage:playdown];
NSImage *stopup = [NSImage imageNamed:@"stopup.tif"];
[stopbuttonOutlet setImage:stopup];
}
What happens is that when I click the play button the play button picture
changes from up to down. And the stop button picture changes from down to
up. So far so good...
The problem is that the stop button changes it's picture when the
mousebutton is released. I want to change the stopbutton picture when the
mousebutton is pressed, just like the playbutton picture does. What can I do
about it?
Best regards Peter
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
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.