Authorization Plug-in with GUI
Authorization Plug-in with GUI
- Subject: Authorization Plug-in with GUI
- From: Markus Hanauska <email@hidden>
- Date: Wed, 15 Feb 2006 12:08:20 +0100
Hi everyone,
I'm currently reading the documentation for the Authorization Plug-
in. I'd like to write one that kicks in during login process before
the actual log-in window appears (for Tiger only).
So far I understood everything I have to do with /etc/authorization
and how to write a plug-in itself (thanks to the NullAuth Plug-in
code example). The problem is, my plug-in has to display a GUI and it
would be great if that's Cocoa using NIB files, not programatically
using Carbon.
However, I don't understand how to do this. When my functions are
called, I don't know from which thread and which context. Am I within
a Cocoa context or just a C context. AFAIK the Cocoa tools only work
if the event handler is thread 0 (trying to create an app and runloop
in another thread gets you nowhere).
So I tried just loading my NIB with a subclassed controller, not
working. So how would I go about creating a GUI? Is there any trick?
Does Apple has any source code showing an Authorization Plug-in with
GUI?
In the docu Apple says "If your mechanism spins off a separate
process or UI thread". I don't know if a separate process could be
called really "safe", if I have to move info around using some IPC
services (whether it is distributed object or a simple pipe). So how
would I go for "spinning off an UI thread" for a Cocoa GUI?
--
Best Regards,
Markus Hanauska
_______________________________________________
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