Setting a target in IB for NSImageView has no effect?
Setting a target in IB for NSImageView has no effect?
- Subject: Setting a target in IB for NSImageView has no effect?
- From: Pierre-Olivier Latour <email@hidden>
- Date: Sun, 07 Jul 2002 17:49:54 +0200
Hi,
Apparently, if I set a target in Interface Builder for a NSImageView
instance, the method does not get called when I click on it. Is this normal
or did I miss something?
I thought all NSControl subclasses handle the "target/action" feature...
PS: editable flag is set to false
PS2: if I subsclass like this, it works fine:
@implementation ClickableImageView : NSImageView
- (void) mouseDown:(NSEvent*)theEvent
{
objc_msgSend([self target], [self action], self);
}
@end
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Manager and Lead Programmer
French Touch software
http://www.french-touch.net
Cool source code:
http://www.french-touch.net/CodeWareHouse
_______________________________________________
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.