• 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
Re: Custom Controls and Controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Controls and Controllers


  • Subject: Re: Custom Controls and Controllers
  • From: j o a r <email@hidden>
  • Date: Tue, 29 Oct 2002 07:30:10 +0100

Two quick suggestions:

1) Look at the "sendActionOn:" property of NSCell. Perhaps you could simply set the controller to be the target of the control action, and message it whenever these events occur.

2) Use a delegate pattern in the control (read the programming topics on the delegate pattern somewhere in the docs). Then set the controller to be the delegate of the control and forward the mouse events to the delegate.

j o a r

On Tuesday, Oct 29, 2002, at 06:15 Europe/Stockholm, Simon Parkinson-Bates wrote:

The problem is this... I want to get the mouse events handled by my
sub-class DVBitManipulator to also fire the onBitManipulator method in my
DVBitController instance. How is this done? What code is required in the
mouseDragged and mouseDown events?
_______________________________________________
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.

References: 
 >Custom Controls and Controllers (From: Simon Parkinson-Bates <email@hidden>)

  • Prev by Date: Custom Controls and Controllers
  • Next by Date: NSRunLoop vs. CFRunLoop
  • Previous by thread: Custom Controls and Controllers
  • Next by thread: Printable region and drawRect
  • Index(es):
    • Date
    • Thread