Compiling cocoa.macos.m under Leopard

BlitzMax Forums/BlitzMax GUI Programming/Compiling cocoa.macos.m under Leopard

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In addition: the error

2007-10-26 20:39:09.524 Main.debug[2346:717] Message sent to an NSImage that was alloc'ed but not yet initialized! Break on -[NSImage _failsafeAllocAuxiliaryStorage] to debug. This will be logged only once.

Can be fixed courtesy Brucey (surprise, surprise) via:


find -

NSImage *NSPixmapImage(bbpixmap *pix){


Look for this line :

image=[[NSImage alloc];

and change to

image=[[NSImage alloc] initWithSize:NSMakeSize(pix->width, pix->height)];

- David