• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
graphicsContextWithGraphicsPort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: [CD] programmatically inserting MO in MOC gets slower with number of items II
  • Next by Date: Re: Save dialog question
  • Previous by thread: Re: Buggy NSPredicate?
  • Next by thread: Child windows, ordering, shadows
  • Index(es):
    • Date
    • Thread