• 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
Setting a target in IB for NSImageView has no effect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Tabbing a NSTableView
      • From: Pierre-Olivier Latour <email@hidden>
  • Prev by Date: Re: [solved, really!] Re: Human readable file type?
  • Next by Date: Re: FW: strcat
  • Previous by thread: Re: [OT] contoured keyboard with Dvorak layout with Mac OS X?
  • Next by thread: Tabbing a NSTableView
  • Index(es):
    • Date
    • Thread