Re: How to constrain the dragging of a window
Re: How to constrain the dragging of a window
- Subject: Re: How to constrain the dragging of a window
- From: Kristin Webster <email@hidden>
- Date: Sat, 9 Nov 2002 10:56:29 -0800
Hi Quentin,
Unfortunately this is not currently possible with a standard window. Window dragging is done in the window server rather than in your app, for responsiveness and robustness reasons. Your app is told about window moves, but does not control them.
Please file an enhancement request describing how you would like to constrain the window moving. We have had various other requests for gridding, etc.
Thanks,
Kristin
On Friday, November 8, 2002, at 04:53 PM, Quentin Mathi wrote:
I want to constrain the dragging of a window in order to have only the vertical movements possible.
I have tried to override NSWindow and setFrame:display: and setFrameOrigin methods, but I see no changes.
I have also tried without success to implement delegate methods like windowDidMove: or windowWillMove:, that doesn't constrain the movement of the window : the window moved then the window is snapping to the position I set.
Perhaps I can subclass NSEvent (to modify the mouseDragged event on the fly) and use poseAsClass method to obtain the behavior I want but I don't know how to do it.
Is anybody having an idea ?
--
Quentin Mathi
email@hidden
_______________________________________________
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.
_______________________________________________
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.