Re: Preventing windows from being dragged
Re: Preventing windows from being dragged
- Subject: Re: Preventing windows from being dragged
- From: Andrew Merenbach <email@hidden>
- Date: Thu, 21 Aug 2008 21:13:49 -0700
Greetings, Mike,
I'm not sure when I have told anyone that they were outright wrong --
heaven knows, I've been wrong enough about various things myself. I
don't recall saying at any point that you were "wrong," and in fact
(as you may clearly note) I said that you must have a good reason for
doing what you were doing, and that I would *not * claim that you were
wrong. I can see that my "right-off-the-bat" qualifier was ill-
chosen, and that my attempt at diplomacy failed -- miserably.
Before you accuse me of polluting the list further, I shall (attempt
to) save this message from that verdict with a couple of suggestions:
1. Try not to get defensive on the list -- the person whom you
lambaste might one day turn out to be someone who could have helped
you in another situation, but won't. I might or might not be capable
of being that person, but others may be.
2. Do take heed of Steve Christenson's message:
The great majority of Mac applications do not run in kiosk mode so
for most cases preventing window movement *is* wrong because you
take control away from the user. Had you first mentioned that you
were building a kiosk app - a vital piece of info - you might've
received what you considered to be useful replies right off the bat.
Or to quote the Xcode list's monthly reminder, "For a great
introduction to asking technical questions on a mailing list, see
“How To Ask Questions The Smart Way” by Eric Steven Raymond at http://catb.org/~esr/faqs/smart-questions.html
."
I wish you the best in your programming endeavors!
Regards,
Andrew
P.S.: I know of -- even if I have never used -- SetSystemUIMode(), if
that's what you're referring to, although you're right about my not
knowing anything about Core Graphics and shielding windows.
On Aug 21, 2008, at 7: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
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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