Is is just because of the Objective-C code? Would it be safe to make C 
functions that would call Objective-C?  Such as:
cheader.h:
typedef struct struct1 struct1;
cfuncCreate(struct1 *s);
cfunc1();
cfunc2();
cfuncDestroy (struct1 *s);

cfile.m:
@interface WHQFunc
{

}
-(id)init;
-(void)dealloc;
@end
struct 
{
        WHQFunc *ObjC;
        int ids;
}struct1;
@implementation WHQFunc

-(id)init
{
        return [super init];
}
-(void)dealloc
{
        [super dealloc];
}
@end

cfunc1()
{

}
cfunc2()
{

}
cfuncCreate(struct1 *s)
{
        s = malloc(sizeof(struct1));
        [[s->ObjC alloc] init];
}
cfuncDestroy (struct1 *s)
{
        [s->ObjC release];
        free(s);
}

On Feb 6, 2010, at 7:45 AM, James McKenzie wrote:

> C.W. Betts wrote:
>> An idea that popped into my head when I was thinking about a Quartz (OS X) 
>> driver that perhaps there could be separate drivers for Quartz (OS X) and 
>> X11.  Such drivers would include OpenGL and DirectX "Drivers".
>> 
>> 
>> 
> This has been shot down time and time again by Alexandre.  However,
> picking up the old Winequartz.dll code and looking at it has been a
> project that I am interested in.   The code is available from
> Sourceforge.net.
> 
> James McKenzie
> 
> 



Reply via email to