Re: compiler warnings when placing QT calls inside objC try block
Re: compiler warnings when placing QT calls inside objC try block
- Subject: Re: compiler warnings when placing QT calls inside objC try block
- From: Byron Wright <email@hidden>
- Date: Mon, 7 Mar 2005 12:42:21 -0800
doing so has no effect because that still won't match the method
signature. Here is another call that gives the same warning. Example :
short movieResFile;
@try
{
FSSpec fileSpec;
.....
err = OpenMovieFile (&fileSpec,&movieResFile,
fsCurPerm);
...
here is the function signature:
OSErr OpenMovieFile (
const FSSpec *fileSpec,
short *resRefNum, // <-- not a const pointer
SInt8 permission );
On Mar 7, 2005, at 12:21 PM, Agent M wrote:
Sure- just cast the pointer to the correct type:
OpenMovieFile((const FSSpec*)&fsspec,....);
On Mar 7, 2005, at 3:06 PM, Byron Wright wrote:
ah ok. Thanks Chris. No way to suppress this warning either I
suppose? I don't like the color yellow in my build window :)
On Mar 7, 2005, at 11:02 AM, Chris Espinosa wrote:
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
AgentM
email@hidden
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
_______________________________________________
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