Two views responding
Two views responding
- Subject: Two views responding
- From: Terje Tjervaag <email@hidden>
- Date: Tue, 5 Aug 2003 10:34:21 +0200
Hi,
I am making an application with (amongst other things) two custom views
that I use for drawing. One view is used for point and click mouse
operations, and the other view shows the result of these operations.
Now, I am experiencing two difficulties:
1. The addTrackingRect: method of NSView has assumeInside: as one of
its arguments. How does one overcome the problem of the view not
responding if the mouse is already inside (assuming that assumeInside
was set to NO). I have to move the mouse out of the view and then back
in again for it to respond.
2. I want my second view (the one showing the results of clicking in
the first) to have a kind of cursor that can be moved back and forth
with the arrow keys. How can I do this and still enable operations in
the first view? Key operations does not seem to work unless the view
is first responder, and then I cannot use the top view at the same time
(it seems to need a mouse click to become first responder again, which
doesn't work since I am displaying feedback to the user's mouse
movement in the view)
Thanks!
Terje
_______________________________________________
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.