I am new to mono and monomac and i got stuck with something that i hope should be really easy to fix.
In my application i want to change some images at runtime, so i created an "Images" folder with my pics inside the root of the project. But when i try to change the image in my code the image can't be found, so i think i'm writing the wrong path.
I try to get the image like this:
NSImage image = new NSImage("Images/image2.jpg"); // I tried with different paths but nothing changed...
pic1.Image = image;
If i use the full path to the image, everything work fine, but i need to use a relative one. How should i get the right relative path?
I'm using Monodevelop.
Thanks.