accessing a WindowRef through Cocoa?

whitesaint

cocoa love
Can anyone help me with this.. I have a WindowRef instance in my main.c file, i want to access the window through cocoa. But how would i go about doing this..I would think I would create the header (.h) and implementation files (.m) for a new object...and go somthin like

myWindow = [myWindow initWithWindowRef:?????];

This is where im confused, how will i go about accessing my WindowRef in my main.c file? Is there a way i can call this function through Objective-C?

main.c -

WindowRef getWindowRef ()
{
return windowRef;
}


myObject.m -

WindowRef * windowRef = getWindowRef();

?????

Help!
 
Back
Top