Re: Any way to draw a PixMapHandle into an NSView??
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.