• 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: Cocoa-dev Digest, Vol 5, Issue 1904
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 5, Issue 1904


  • Subject: Re: Cocoa-dev Digest, Vol 5, Issue 1904
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 6 Nov 2008 12:29:30 -0800

At 12:02 PM -0800 11/6/08, ic wrote:
Date: Thu, 6 Nov 2008 14:20:08 -0500
From: Eric Gorr <email@hidden>
Subject: Re: A finished moving notification for a window?
To: Cocoa Dev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


On Nov 6, 2008, at 1:52 PM, Eric Gorr wrote:

It looks like the only way to get the behavior I want is to subclass NSWindow and override the mouse movement functions for the NSResponder.

Well, this just got a little more complicated.

The window does not mouseDown or mouseUp events if the user clicks in the title bar.

I found an old thread:

http://lists.apple.com/archives/cocoa-dev/2006/Oct/msg00141.html

related to this issue, but there was no solution posted to the mailing list.

i manage this with a subclass of nswindow as follows: register to receive the NSWindowWillMoveNotification notification upon receiving this notification, set an iVar windowIsMoving override send event as follows:

- (void) sendEvent: (NSEvent*) theEvent {
	[super sendEvent: theEvent];
	if ([self windowIsMoving])
		if ([theEvent type] == NSLeftMouseUp)
			[self endMove];
	}

(don't forget to turn off windowIsMoving in endMove)

ken
_______________________________________________

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


  • Prev by Date: Re: Non standard shape(rectangle) window
  • Next by Date: Re: dragging an image to Photoshop dock tile
  • Previous by thread: Re: Non standard shape(rectangle) window
  • Next by thread: Re: A finished moving notification for a window?
  • Index(es):
    • Date
    • Thread