Creating an Alert pop-up from a tool/service?
Creating an Alert pop-up from a tool/service?
- Subject: Creating an Alert pop-up from a tool/service?
- From: "Huyler, Christopher M" <email@hidden>
- Date: Fri, 17 Oct 2003 14:51:28 -0400
- Thread-topic: Creating an Alert pop-up from a tool/service?
So I have a unix-style service running that is scanning files in
realtime to detect viruses. Can I have this background service create
an alert window without a lot of extra code? I don't need to get
information back from the alert, I just need the window to pop up with
some details.
I tried creating a small cocoa-app that just pops up a window using
NSRunAlertPanel(). This worked except the app can only be launched once
at a time. I would like multiple alerts to pop up if multiple files are
accessed that contain viruses (before the user clicks ok on the first).
I would also like them to pop up in a cascading fashion if that isn't
asking too much. Is there a way to allow an application to have
multiple instances?
So I figured if they were going to cascade they prolly have to come from
the same process and my cocoa idea wasn't working out too well. I did
some more searching and I found the carbon equivalent,
CreateStandardAlert(). I made a simple C++ program that brings in the
Carbon framework and calls CreateStandardAlert and RunStandardAlert,
nothing else. The popup appears behind my terminal but I cannot click
it or anything. I didn't think it was going to be that simple but I
figured I'd try.
Anyway, what are your suggestions on making simple popup messages?
--
Christopher Huyler
Computer Associates
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.