Re: Custom Controls and Controllers
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.