Code Signing Examples

2009-02-20 Thread Tom Fortmann
Can anyone point me to sample code on how to verify an application or process is signed? My application executes a couple other processes and I would like to validate their signatures before I blindly execute them. I've found a ton of Apple documentation on the theory but not a lot on practical

RE: Code Signing Examples

2009-02-20 Thread Tom Fortmann
To: Tom Fortmann Cc: cocoa-dev@lists.apple.com; darwin-...@lists.apple.com Subject: Re: Code Signing Examples On Feb 20, 2009, at 6:47 AM, Tom Fortmann wrote: Can anyone point me to sample code on how to verify an application or process is signed? My application executes a couple other processes

RE: Determining if a user is logged in from a Launchd Daemon

2009-02-09 Thread Tom Fortmann
Thank you to everyone that responded. After reading through the Technical QA QA1133 and Technical Note TN2083 (as well as all of your responses) I decided to use the utmpx API's for this application. I like the concept of dividing users and system functions into separate user agents and system

Determining if a user is logged in from a Launchd Daemon

2009-02-06 Thread Tom Fortmann
Is there a way of determining if a GUI user (ignoring remote shells and such) is logged in from a system daemon? It looks like the WindowServer process is started for a user session, but I'm not sure scanning the process list is the best way of tackling this problem. Is there some Apple Event

How can I display a pop-up alert message to a user from a background launchd daemon?

2009-02-04 Thread Tom Fortmann
Can anyone offer some guidance on how to pop-up a dialog box from a background process? I have a system daemon started by launchd out of the /Library/LaunchDaemons folder. Among other things the daemon manages a background software update process, and depending on the extent of the change

How do you get the OS X version number in C or C++?

2008-11-14 Thread Tom Fortmann
Is there a core foundation function for querying the Mac OS X operating system name and version information? The uname() API returns the Darwin kernel version information, but I need to find the OS X 10.x.x information. Tom Fortmann Xcape Solutions

RE: How do you get the OS X version number in C or C++?

2008-11-14 Thread Tom Fortmann
What framework do I include in my Xcode project to pull in Gestalt? I've tries CoreServices, Carbon and Cocoa. -Original Message- From: Sean McBride [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2008 2:27 PM To: chaitanya pandit; Tom Fortmann Cc: cocoa-dev@lists.apple.com

RE: How do you get the OS X version number in C or C++?

2008-11-14 Thread Tom Fortmann
I'm an idiot! I was trying to include gestalt.h directly. Simply including the CoreService/CoreService.h header works like a champ. -Original Message- From: Sean McBride [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2008 3:17 PM To: Tom Fortmann; 'chaitanya pandit' Cc: cocoa

Use of cURL and OpenSSL versus CF and NS Classes

2008-11-03 Thread Tom Fortmann
a definitive answer here, but I'm hoping the wealth of experience on this list can provide some good advice. Tom Fortmann Xcape Solutions Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Launchd timeout messages

2008-10-20 Thread Tom Fortmann
a more appropriate developer list. If one exist please forgive the intrusion and point me in the right direction. Tom Fortmann Xcape Solutions ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

RE: Launchd timeout messages

2008-10-20 Thread Tom Fortmann
Jason, Thanks. I will try removing the OnDemand key. If that doesn't work I will report on Darwin-dev list. Thanks again, Tom -Original Message- From: Jason Coco [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 3:14 PM To: Tom Fortmann Cc: cocoa-dev@lists.apple.com Subject

Best approach to long running tasks.

2008-09-10 Thread Tom Fortmann
I'm looking for suggestions on how to best handle long running tasks. My app has a simple button connected to an Objective-C method. When I click the button the method is called and a series of steps are performed. Each involves some network activity and may take a second or two. I would like

RE: Best approach to long running tasks.

2008-09-10 Thread Tom Fortmann
, Inc. -Original Message- From: Ken Thomases [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2008 9:13 AM To: Tom Fortmann Cc: cocoa-dev@lists.apple.com Subject: Re: Best approach to long running tasks. On Sep 10, 2008, at 7:58 AM, Tom Fortmann wrote: I'm looking for suggestions

RE: Cocoa-dev Digest, Vol 5, Issue 1598

2008-09-10 Thread Tom Fortmann
I'm new and jumping in late and really don't have much to add except you are both right. At its core I think it's important that OS X hold true to the concept that any Application can be installed and deleted through a simple drag and drop operation. Installers aren't a bad thing. They help