Re: Stumped: How to call a function defined in a Framework?
Re: Stumped: How to call a function defined in a Framework?
- Subject: Re: Stumped: How to call a function defined in a Framework?
- From: JK <email@hidden>
- Date: Fri, 5 Dec 2008 00:20:50 -0800
Thanks Chris and Michael for providing the solution!
I am reacquainting myself with Xcode after several years of being away.
The reason for this simple example is that I was reading through the
"Multiple User Environments" document which provides an example of how
to get login session information (In another document, it was
suggested to use the login session ID as an identifier for temporary
files that may be created by an application that is run by two
different users simultaneously on the same machine).
In the "Multiple User Environments" document (ADC Home > Reference
Library > Guides > Mac OS X > Multiple User Environments), in the
section "Getting Login Session Information", it mentions to use
"#include <Security/Security.h>". This may be a documentation error
then...
But, your suggestions provided me with a solution I will try first
when I run into a similar issue again in the future.
Again, thanks for your help. It got me past a roadblock!
Cheers,
JK
On Dec 4, 2008, at 11:59 PM, Michael Nickerson wrote:
On Dec 5, 2008, at 2:38 AM, JK wrote:
4. Also in "MyDocument.m", add the line "#import <Security/
Security.h>" immediately after the line "#import "MyDocument.h"".
You need to include <Security/AuthSession.h> to get
SecuritySessionId declared. That header isn't automatically included
in the Security.h header - there's a few headers in the Security
framework that aren't automatically included.
--------------------------------------
Darkshadow
(aka Michael Nickerson)
http://www.nightproductions.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden