Understanding mouseDownCanMoveWindow & isMovableByWindowBackground
Understanding mouseDownCanMoveWindow & isMovableByWindowBackground
- Subject: Understanding mouseDownCanMoveWindow & isMovableByWindowBackground
- From: Steve Sheets <email@hidden>
- Date: Mon, 13 Nov 2006 16:51:13 -0500
Understanding mouseDownCanMoveWindow & isMovableByWindowBackground
------------------------------------------------------------------------
-----------------------------------------
Can anyone help me with this?
My program creates some border-less windows each containing a single
custom view field. Depending on the window, the view will draw an
odd shaped (ie. partly opaque) graphics. Some areas of the view will
contain graphic elements (clickable & drag-able items), while other
section of the window will contain nothing but art. I want to be
able to specify if a mouse down in one location will be parsed by my
view, while mouse down in other areas of the view will allow the user
to move/drag the window on the desktop (remember this is a border-
less window).
I had done similar code before by overriding NSWindow's
isMovableByWindowBackground and NSView's mouseDownCanMoveWindow.
However, these calls seem to looked at before the mouse down is
passed to the view. In other words, the program returns true or false
for these method, before the program knows where the mouse down
occurred.
Am I missing something? Is there no way to specify, depending on
location of mouse down in a single field, if the use can move the
window vs interact with some element of the view?
As always, any hints on where to start would be greatly appreciated!
Thanks,
Steve Sheets
Midnight Mage Software
_______________________________________________
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