• 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
Re: Any way to draw a PixMapHandle into an NSView??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to draw a PixMapHandle into an NSView??


  • Subject: Re: Any way to draw a PixMapHandle into an NSView??
  • From: Jeff LaMarche <email@hidden>
  • Date: Wed, 5 Jun 2002 22:28:13 -0700 (PDT)

On Wednesday, June 05, 2002, at 09:46AM, nicolas berloquin <email@hidden> wrote:
>the only problem with this approach (in my opinion) is that you'll have
>the overhead of NSImages.
>If you're using pixmaphandles for offscreen drawing, seeking efficiency,


True, but I would say that this is a disadvantage in relatively few situations - areas where performance is crucial. On the other hand, you create a lot more code for yourself to maintain, and take upon yourself responsibilities that you don't need to.

Personally, I'd go with my way first because it's easy, it works, and there's only one line of code to maintain. I'd then switch to something like you suggest if performance is suffering or if the code is not sufficient for some other reason. Premature optimization is the root of all evil, and the fastest code is not always the best code for a given situation.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Any way to draw a PixMapHandle into an NSView??
      • From: Esteban <email@hidden>
  • Prev by Date: QuickTime 6 & CarbonSound.framework
  • Next by Date: How to print a window PLUS its open drawer
  • Previous by thread: Re: Any way to draw a PixMapHandle into an NSView??
  • Next by thread: Re: Any way to draw a PixMapHandle into an NSView??
  • Index(es):
    • Date
    • Thread