• 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
Mouse and buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Mouse and buttons
      • From: j o a r <email@hidden>
  • Prev by Date: [Newbie] How to load and display a sheet from a NIB file ?
  • Next by Date: DocumentController and Folders
  • Previous by thread: Re: [Newbie] How to load and display a sheet from a NIB file ?
  • Next by thread: Re: Mouse and buttons
  • Index(es):
    • Date
    • Thread