HiDPI / Retina and NilObjectException

FYI - so everyone can understand whats going on
The toolbar isn’t the culprit

The trick here is that in the IDE there is a “mask” for the image
This is one of those things that we do not see a lot of people use
When you add a Picture you can set a mask property in the inspector by selecting another picture in the IDE to use as the “mask”

You could remove everything except the images “build” and “buildmask” and have only 1 line of code in app.open

dim p as picture = build

You’ll get the same exception

BUT - since you are using PNG’s you could get rid of the “mask” images and simply create png’s that have alpha channels to achieve the same effect

I am NOT saying this isn’t a bug - just that there is perhaps a different way of achieving the same result by using a PNG with alpha channel instead of a base image + mask

Back in 2006 or 2007, when I started this project, masks were the thing to use. Since Greg adviced to ‘convert to image’, I’ve reviewed all images and masks in use, deleted those that are not used anymore and replaced the converted images with new, fresh PNGs.

Thanks for finding out about the masks, because I have some more projects with the same setup, which I will now start to update one by one, so that those too wil be Retina-capable.

Thanks,
Marc