aghh what is with cocoa's bitmap loading
whenever i run code which loads a bitmap into opengl memory using cocoa's NSBitmapImageRep class, then quit the program, then either change the image file (ex. replacing it with another image, or simply deleting it), and run the code again it acts like the file is exactly the same as it was when the code was run for the first time. this is VERY annoying, and has happened to me on multiple occasions. i was just wondering whether this has happened to anyone else, and what they did to fix it.
Chances are you need to clean your project after changing the image.
Yes, it's probably loading from a copy of the image inside the app bundle that was put there by the build process.
If the file is a resource inside a folder reference, PB won't check if it's been updated. It's an annoying bug, but Jabber's right that the fix is to clean the project (removing the executable from the build folder works too).
Possibly Related Threads...
Feb 27, 2011 12:55 PM
Last Post: markhula
|Bitmap font toolkit||Najdorf||9||6,371||
Nov 11, 2008 05:43 PM
Last Post: Najdorf
|Bitmap Fonts in GL||Joseph Duchesne||18||8,879||
Feb 3, 2006 09:25 AM
Last Post: ThemsAllTook
|obtaining bitmap data from jpg file with odd size||isyuwono||2||2,054||
Jan 26, 2006 11:45 AM
Last Post: zKing
|Question about displaying a bitmap while drawing other stuff on top of it||Malarkey||4||2,830||
May 1, 2005 10:39 PM
Last Post: Malarkey