• 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
Re: Are there any way to update NSPanel content during dragging the panel ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are there any way to update NSPanel content during dragging the panel ?


  • Subject: Re: Are there any way to update NSPanel content during dragging the panel ?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 02 May 2012 21:31:23 -0700

On May 2, 2012, at 5:59 PM, Yoshiaki Katayanagi wrote:

> My custom NSView in a NSPanel shows some information depends on panel's position to the main window. I want  to update it during dragging the panel. I try [self setNeedsDisplay:YES] in mouseDragged: delegate

-mouseDragged: is called after the mouse button is pressed *within your view* and the cursor moves. It has nothing to do with the window being dragged, since after all that’s a mouse-down in the title bar, not your view.

In general views don’t care about and don’t get notified about window movement. You can listen to the NSWindowDidMoveNotification posted by the window, if you want to know about it.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Are there any way to update NSPanel content during dragging the panel ?
      • From: Yoshiaki Katayanagi <email@hidden>
References: 
 >Are there any way to update NSPanel content during dragging the panel ? (From: Yoshiaki Katayanagi <email@hidden>)

  • Prev by Date: Re: NSTableview tooltip bug?
  • Next by Date: Window "snapping" to main screen
  • Previous by thread: Are there any way to update NSPanel content during dragging the panel ?
  • Next by thread: Re: Are there any way to update NSPanel content during dragging the panel ?
  • Index(es):
    • Date
    • Thread