William Tell and the moving target

Discussion in 'Mac Programming' started by Sydde, Jan 16, 2010.

  1. Sydde macrumors 68020


    Aug 17, 2009
    It can be really frustrating trying to hit the moving target that is Mac OS.

    I just found out that my first full project, a learning experience in the form of yet-more-minesweeper-idiocy, now more-or-less fails under Snow Leopard. I remain on PPC, so I have no real way of finding out exactly why it fails. It seems to run without actual errors, the sound effects work, but the images do not display (I have a friend with a new-ish iMac). I used a sub-classed NSMatrix of NSImageCells to draw the squares, but I am told the squares do not present images. The images are diced out of a single png file that is in Resources or an application support directory. Does anyone have some idea of what might have changed in NSImage, NSImageCell or NSMatrix in SL?. I am not really keen to dive back into it, but having it not working rankles me a bit.
  2. kainjow Moderator emeritus


    Jun 15, 2000
    None of the classes you mentioned are deprecated, but there's a chance you're either using an API improperly, or you're using a method/function/class that got changed, or something else small like that. If you want to post your project somewhere I or someone else could take a look.
  3. Sydde thread starter macrumors 68020


    Aug 17, 2009
    Ok, I posted the project on my server. There was a lot of other clutter in that folder, which I stripped out of the archive. There are a couple of source files in there that were meant to be an attempted fix, but I never got to doing anything with them. The primary methods of interest would be in mField.m, -buildTilesetFromImage: and possibly -awakeFromNib


    The link will probably not work until at least an hour after the time on this post.

Share This Page