I have the following structure in my Images.xcassets in Xcode:

There is a typical method for setting an image using NSImage *image = [NSImage imageNamed:@"confused"]; but is there a way to set an image using a folder structure?
For example, I tried NSImage *image = [NSImage imageNamed:@"/Statusbar/confused"]; Link to the image in the Statusbar folder, but it doesnโt work. This approach would be useful if you need to have different images with the same name, where each image is located in a different xcassets folder. And yes, Xcode allows you to name two images with the same name.
source share