In cases where multiple buttons call an IBOutlet, can the IBOutlet determine which button was pressed?
edit:
All fixed and wired up. key point: Object ID is not sender tag! Tag is a standalone value on the first page of the attributes.
- (IBAction)buttonPressed:(id)sender
{
switch ( [sender tag] )
{
case 109:
NSLog(@"Button 1");
break;
case 108:
NSLog(@"Button 2");
break;
}
}