• 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
NSImageView detect click.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView detect click.


  • Subject: NSImageView detect click.
  • From: Mark Thomas <email@hidden>
  • Date: Mon, 10 May 2004 15:30:29 +0100
  • Organization: Coderus Ltd

Hi,
I'm doing a simple Splash/About screen screen, and I have my window within
the nib file, and I have placed a NSImageView on this window (covers whole
window), which I'm planning to create a NSView with a particular file, and
then give that to the NSImageView. Hopefully quite simple :-).

So I just wanted to detect the mouse has been click on this image to close
the window, I've noticed that there is a performClick within the NSControl
class, but I don't seem to be able to set the delegate for this NSImageView,
like what I have done for my NSWindow and "File;s Owner object", as I have a
controller object which has some addition interfaces which deal with
appFinishLoading and windowDidBecomeMain methods.

Maybe I have misunderstood how you are suppose to use these interfaces of
these objects, otherwise I could create an object and inherit from it, but
this seem like an over kill just to pick up a click.

Thanks
Mark.
_______________________________________________
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: NSImageView detect click.
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Handling NSMenuItem Selections
  • Next by Date: Re: Knowing when NSSplitView's divider relocates
  • Previous by thread: Re: Adding a gui
  • Next by thread: Re: NSImageView detect click.
  • Index(es):
    • Date
    • Thread