How to make mouseDown repond for both the matrix and Scrollview?
How to make mouseDown repond for both the matrix and Scrollview?
- Subject: How to make mouseDown repond for both the matrix and Scrollview?
- From: Manish Pattath <email@hidden>
- Date: Mon, 19 Apr 2004 14:24:15 +0100 (BST)
Hi All,
I have an NSMatrix embedded in the NSScrollView, where
images from a folder are displayed. When the number of
images are more, a scrollbar is displayed as i send an
sizeToCells call to the Matrix.
In the Nib,
my window's delegate is connected to the NSMatrix
[NSButtonCells] and my matrix responds to mouseDown
event.
when the number of images are very few, there is a
demarkation on the NSScrollview, after which the
mouseDown is not called [After demarkation it is the
ScrollView that is displyed and hence it does not
respond to mouseDown] which is correct.
now i want to make both my matrix and the Scrollview
to respond to the mouseDown event.
My class which responds to mouseDown is derived from
NSMatrix.
i need the scrollview also to respond to the
mouseDown.
Is this possible?
If yes, how is it achieved?
can the same implementation be used for both?
Does anything needs to be done in the NIB too?
Any help is greatly appreciated.
Thanks.
________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
http://yahoo.shaadi.com/india-matrimony/
_______________________________________________
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.