• 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 windows from being dragged
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing windows from being dragged


  • Subject: Re: Preventing windows from being dragged
  • From: Andy Lee <email@hidden>
  • Date: Thu, 21 Aug 2008 23:52:15 -0400

If you don't have the ability to figure out everything you need on your own, then please refrain from polluting the mailing list with attacks on people who want to help you. Andrew specifically did *not* say you were wrong, and he asked a polite question. Nobody has all the answers. If you did, you wouldn't have come to this list for help.

You can create a window with no title bar without instantiating it in code. Create a subclass of NSWindow, override the default initializer, set the class of your window in IB to be this subclass.

--Andy


On Aug 21, 2008, at 10:43 PM, Mike wrote:

What I am doing is definitely not "wrong".

My application is a kiosk application, I put up shielding windows on all
attached monitors, and I enter kiosk mode. I then have a totally black
display with a single window - mine - which is the size of the main
display but which I want to be immovable.


I suggest you familiarize yourself with OS X's kiosk mode and Core
Graphics' shielding windows before you go telling people they are "wrong".


What I am doing is no more "wrong" than a game developer taking over the
display.


In fact, you're a time-waster because instead of helping people, all you
can do is tell them "you're wrong" without providing any kind of solution (and without even knowing what you are talking about).


If you don't have the ability to help people, then please refrain from polluting the mailing lists with time-wasting nonsense.

Mike

Andrew Merenbach wrote:
Hi, Mike,
Unfortunately, I'm not sure as to the exact answer to your question. Do bear in mind, however, that -- even if there is a way -- you'll have to take into account that the user might very well switch Spaces, rendering your window no longer visible. While I won't tell you right-off-the-bat that what you're doing is wrong, as you probably have a good reason for doing what you ask, may I enquire: what exactly are you attempting to do? Helping everyone to understand your situation might help everyone in helping you. :)
Best,
Andrew
On Aug 21, 2008, at 6:10 PM, Mike wrote:
Is there any way to prevent a Cocoa window from being dragged while it is onscreen?

Thanks,

Mike


_______________________________________________

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 windows from being dragged (From: Mike <email@hidden>)
 >Re: Preventing windows from being dragged (From: Andrew Merenbach <email@hidden>)
 >Re: Preventing windows from being dragged (From: Mike <email@hidden>)

  • Prev by Date: Re: NSWindowController, owner, "primary window"...
  • Next by Date: Re: Design Question: Pro & Cons of KVC/KVO
  • Previous by thread: Re: Preventing windows from being dragged
  • Next by thread: Re: Preventing windows from being dragged
  • Index(es):
    • Date
    • Thread