Re: Modified AuthSample and Focus
Re: Modified AuthSample and Focus
- Subject: Re: Modified AuthSample and Focus
- From: Jens Bauer <email@hidden>
- Date: Thu, 16 May 2002 18:19:06 +0200
Hi Arthur,
I have the same focus problem. Try subscribing to the CDSA list (Common
Data Security Architechture), and repost your message.
I'm not sure whether they could reproduce the problem using my
application, maybe they can with your app ?
I think this has to do with that the original AuthSample does *not* bring
up its own GUI in the application, but only in the tool a dialogbox
opens. This way, the tool is the only process bringing up a GUI, which
will then have focus.
There is a solution to this problem. I almost got it working by creating
my own dialogbox, but then I wasn't allowed to work more on the project,
due to that it had to ship. -So it left without the customized UI.
So it's in fact in the GUI application you can (and should!) create your
own username/password dialogbox, and *not* in the tool. If you do it in
the tool, there's no reason for actually having the tool, as including
the frameworks in itself would be a security risk. (This is a quote from CDSA)
On Wed, 15 May, 2002, Arthur Lewis <email@hidden> wrote:
>
Not sure that this is the best group for this query - so if not please point
>
me in the right direction.
>
>
I need to do authentication but first I want to authenticate and then
get some
>
DialOut information in order to add the dialout information to the system
>
preferences. If authentication fails then I don't want the dialog window
>
used to capture dialout information to show up so that is the reason for the
>
order I have choosen. I have no problem in getting it all to work (but with
>
a GUI glitch) - both in CodeWarrior 7.2 and Project Builder (OS X 10.1.4).
>
>
The problem is that I can't get focus in the authentication dialog (unless I
>
do a mouse click on the dialog) - I either have an arrow or "spinning beach
>
ball" cursor - but clicking the mouse does allow focus and input of the
>
name/password. In the original AuthSample 2.0d2 it works just like I need -
>
no need to mouse click in order to allow input, the fields are immediately
>
available.
>
>
OK - I then started with the AuthSample and added a main.nib etc. and added a
>
call to CreateNibReference(CFSTR("main", &nibRef) - now the code no longer
>
provides focus in the Authentication dialog window and I need to click the
>
mouse in order to add input - hm. - stub out the call to
CreateNibReferenc and
>
now it works without requiring a mouse click.
>
>
Same result if I have ShowWindow (wndRef) or other GUI calls - weird!!
>
>
Any thoughts on how to solve the problem - if I had access and knew the
>
reference to the dialog window maybe I could simulate a mouse click!!
>
>
This is driving me crazzzzzy!!
>
>
Thanks for any enlightement and pointers - Arthur Lewis
Love,
Jens
--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.