advertisement

Article:
  The Objective-C Language
Subject:   setImage?
Date:   2003-03-02 05:11:21
From:   anonymous2
What is the problem with this code snippet? I want to set the picture 'play2.tif' on the button when the same button is pressed. I am new to Cocoa


- (IBAction)ButtonAction:(id)sender
{
[sender setImage:play2];
}