Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nswindow resize question



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.