Another question about controlling subview order
Another question about controlling subview order
- Subject: Another question about controlling subview order
- From: Gordon Apple <email@hidden>
- Date: Sun, 23 Apr 2006 11:22:29 -0700
First let me say that I'm still inexperienced with Cocoa, but well
versed in MacApp.
There are times when I want many of the features of a subview, but want
to attach it to or imbed it in a draw object within a main drawing view. In
such case I want to control the draw order rather than the framework.
Another issue is hit testing. Depending on a mode flag, I would also like
to control who gets the hit test mouse down event. In a layout mode, there
are many times when I would like the subview to conditionally handle the
hit. If it doesn't handle it, I would like it to pass it up to my draw view
for things like dragging the owning draw object. MacApp wouldn't easily
allow that because for the subview to test the hit it had to be active, in
which case handler passed the event to it and the handler terminated its
search there whether the view really wanted to (conditionally) handle the
event or not. It took some effort to subvert that behavior and only worked
because I could see the code and override what I needed in the superview's
event handling. Am I going to be able to do that in Cocoa?
Maybe the solution is to do this directly in Quartz rather than
attaching subviews to the draw objects?
A possibly better explanation of what I want to do is be able to imbed
any type of visual media, images, QT, etc. within my draw shapes, clip them
to the interior of the (arbitrary) shape, and still be able to position and
drag them (even overlapped) and have them draw (including the attached view)
in the order of my own draw list.
--
Gordon Apple
Ed4U
Redondo Beach, CA and Little Rock, AR
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden