Re: Loading image resources
Re: Loading image resources
- Subject: Re: Loading image resources
- From: Charles Jenkins <email@hidden>
- Date: Sun, 14 Sep 2014 22:27:07 -0400
Well, that explanation was helpful. I learned how to verify that the images.xcassets is indeed included in my target build. Also I tried one of your suggestions, and this is what works:
class func getImageAsset( name: String ) -> NSImage {
let bundle = NSBundle.mainBundle()
let img = bundle.imageForResource( name )
return img
}
Thanks!
—
Charles Jenkins
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden