Re: Generic Bitmap to NSImage

2015-06-26 Thread Raglan T. Tiger
> On Jun 25, 2015, at 5:32 PM, Ken Thomases wrote: > > First suggestion is to cache the results so you don't have to convert every > time. This is the approach I have taken in conjunction with the other comments that showed I was copying things twice. I have achieved the performance desired

Re: Generic Bitmap to NSImage

2015-06-25 Thread Ken Thomases
> On Jun 25, 2015, at 6:10 PM, Raglan T. Tiger wrote: > > I have a list of generic bitmaps that are to be transformed to NSImages. The > list can be long, I haven limits on it. > > Here is the code I use to populate an NSMenu that gets set into an > NSPopUpButton. > > I need to speed this p

Re: Generic Bitmap to NSImage

2015-06-25 Thread Graham Cox
> On 26 Jun 2015, at 9:10 am, Raglan T. Tiger wrote: > > I have a list of generic bitmaps that are to be transformed to NSImages. The > list can be long, I haven limits on it. > > Here is the code I use to populate an NSMenu that gets set into an > NSPopUpButton. > > I need to speed this pr

Generic Bitmap to NSImage

2015-06-25 Thread Raglan T. Tiger
I have a list of generic bitmaps that are to be transformed to NSImages. The list can be long, I haven limits on it. Here is the code I use to populate an NSMenu that gets set into an NSPopUpButton. I need to speed this process up ... any suggestions? NSMenu *comboMenu = [[[NSMenu alloc]