[Mono-osx] NSImage.ImageNamed - in folder?

thenextman rmarkiewicz at devolutions.net
Thu Dec 6 20:16:51 UTC 2012


Aaron Oneal wrote
> I'm pretty sure that method uses either a named image that was 
> previously set or looks only in the bundle root. For subfolders, you 
> probably need to use the NSImage constructor that takes a filename. If 
> the constructor doesn't assume the bundle root, you can probably 
> construct the absolute path usingNSBundle.MainBundle.PathForResource.

NSBundle.MainBundle.PathForResource with the path works, thank you!



--
View this message in context: http://mono.1490590.n4.nabble.com/NSImage-ImageNamed-in-folder-tp4657676p4657680.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list