nswindow resize question
nswindow resize question
- Subject: nswindow resize question
- From: Bill So <email@hidden>
- Date: Tue, 8 Jul 2003 07:50:44 +0800
Dear all,
I implemented the delegate function windowDidResize but its behaviour
cannot fit my need completely. Please give me some advice.
My problem is:
1. There's only 1 GUI widget in my NSWindow which is an NSImageView
2. When resize the window, the image inside the image view should
refresh.
The requirement:
Only refresh the image when the user release the mouse from the resize
control at the corner.
However, windowDidResize is invoked when I am still dragging the mouse.
And so, the image is refreshed for many times during the course.
I'd like to do the refresh only when the user releases the mouse.
Can you suggest me ways to do this? Do I need to override NSWindow and
re-implement the mouseUp method?
I tried inheriting NSImageView and override the mouseUp method.
However, mouse up event is not sent to the NSImageView if I click the
resize control at the corner of an NSWindow.
Thank you very much for your help.
Yours,
Bill
_______________________________________________
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.