• 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
Understanding mouseDownCanMoveWindow & isMovableByWindowBackground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Understanding mouseDownCanMoveWindow & isMovableByWindowBackground


  • Subject: Understanding mouseDownCanMoveWindow & isMovableByWindowBackground
  • From: Steve Sheets <email@hidden>
  • Date: Mon, 13 Nov 2006 16:51:13 -0500

Understanding mouseDownCanMoveWindow & isMovableByWindowBackground
------------------------------------------------------------------------ -----------------------------------------



Can anyone help me with this?

My program creates some border-less windows each containing a single custom view field. Depending on the window, the view will draw an odd shaped (ie. partly opaque) graphics. Some areas of the view will contain graphic elements (clickable & drag-able items), while other section of the window will contain nothing but art. I want to be able to specify if a mouse down in one location will be parsed by my view, while mouse down in other areas of the view will allow the user to move/drag the window on the desktop (remember this is a border- less window).

I had done similar code before by overriding NSWindow's isMovableByWindowBackground and NSView's mouseDownCanMoveWindow. However, these calls seem to looked at before the mouse down is passed to the view. In other words, the program returns true or false for these method, before the program knows where the mouse down occurred.

Am I missing something? Is there no way to specify, depending on location of mouse down in a single field, if the use can move the window vs interact with some element of the view?

As always, any hints on where to start would be greatly appreciated!

Thanks,

Steve Sheets
Midnight Mage Software
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Bounds questions
  • Next by Date: Re: Opening a closed window - Thanks to Shawn&Stephen for help.
  • Previous by thread: Re: DnD and TableViews (again)
  • Next by thread: Re: Opening a closed window - Thanks to Shawn&Stephen for help.
  • Index(es):
    • Date
    • Thread