• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
nswindow resize question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: nswindow resize question
      • From: Boaz Stuller <email@hidden>
  • Prev by Date: Re: Speed up drawing of View with multiple NSBezierPaths
  • Next by Date: Re: non-blocking file writes
  • Previous by thread: Re: Drawing speed
  • Next by thread: Re: nswindow resize question
  • Index(es):
    • Date
    • Thread