• 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: Preventing a user from moving a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing a user from moving a window


  • Subject: Re: Preventing a user from moving a window
  • From: Benjamin Dobson <email@hidden>
  • Date: Wed, 26 Nov 2008 11:09:02 +0000

On 26 Nov 2008, at 03:28:11, Damien Cooke wrote:

Hi all,
I have an arrangement of windows that I do not want the user to move. What is the best way of doing this. There are several ways I thought of but they are not very elegant. Can someone point me in the right direction?


Regards
Damien

You could use the windowWillMove: delegate method, and reset the position of the window while the user is trying to move it. It's not ideal, but it should work (I haven't tested it).
_______________________________________________


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


References: 
 >Preventing a user from moving a window (From: Damien Cooke <email@hidden>)

  • Prev by Date: Re: NSTableView Drag-Drop re-ordering...
  • Next by Date: Re: Programatically Triggering an NSSearchField Search
  • Previous by thread: Preventing a user from moving a window
  • Next by thread: Re: Preventing a user from moving a window
  • Index(es):
    • Date
    • Thread