[AD] bitmap loading broken under OSX 10.5

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I get this during compilation:

/Users/elias/prog/git4.9/addons/image/macosx.m: In function ‘really_load_image’: /Users/elias/prog/git4.9/addons/image/macosx.m:39: warning: ‘NSImageRep’ may not respond to ‘-CGImageForProposedRect:context:hints:’ /Users/elias/prog/git4.9/addons/image/macosx.m:39: warning: (Messages without a matching method signature /Users/elias/prog/git4.9/addons/image/macosx.m:39: warning: will be assumed to return ‘id’ and accept /Users/elias/prog/git4.9/addons/image/macosx.m:39: warning: ‘...’ as arguments.) /Users/elias/prog/git4.9/addons/image/macosx.m:39: warning: initialization from incompatible pointer type

And any attempt to load .png files at runtime crashes like this:

h-3.2# ./ex_draw_bitmap
2010-03-07 19:42:28.726 ex_draw_bitmap[55148:351b] *** - [NSBitmapImageRep CGImageForProposedRect:context:hints:]: unrecognized selector sent to instance 0x2cb7d0 2010-03-07 19:42:28.727 ex_draw_bitmap[55148:351b] An uncaught exception was raised 2010-03-07 19:42:28.728 ex_draw_bitmap[55148:351b] *** - [NSBitmapImageRep CGImageForProposedRect:context:hints:]: unrecognized selector sent to instance 0x2cb7d0 2010-03-07 19:42:28.729 ex_draw_bitmap[55148:351b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** - [NSBitmapImageRep CGImageForProposedRect:context:hints:]: unrecognized selector sent to instance 0x2cb7d0'
2010-03-07 19:42:28.730 ex_draw_bitmap[55148:351b] Stack: (

Before trying to fix it myself I thought I post here, maybe you have an idea what went wrong Evert? Easy solution would be to disable macosx.m for OSX < 10.6 I guess.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/