graphicsContextWithGraphicsPort
graphicsContextWithGraphicsPort
- Subject: graphicsContextWithGraphicsPort
- From: Howard Shere <email@hidden>
- Date: Thu, 21 Sep 2006 12:31:16 -0500
I have a carbon app which uses graphicsContextWithGraphicsPort and it
works great:
nsContext = [NSGraphicsContext graphicsContextWithGraphicsPort:
fCurrentContext flipped: true];
The problem is that I need to make this app work in 10.3 now and I
can't figure out a way to do what graphicsContextWithGraphicsPort
does since it is a 10.4 only call.
I have tried this:
cocoaWindow = [[NSWindow alloc] initWithWindowRef: (void*)
carbonWindow];
nsContext = [NSGraphicsContext graphicsContextWithWindow:
cocoaWindow];
But as soon as I call initWithWindowRef, the drawing of the carbon
window stops working. If I then release the cocoaWindow, the
WindowRef seems to be disposed of.
Any ideas?
Howard Shere
http://www.livejournal.com/users/realgreendragon/
Altair 8800a to Mac OS X so far...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden