On Sep 13, 2014, at 12:28 , Charles Jenkins <cejw...@gmail.com> wrote:
> After calling bundle.pathForResource:ofType:, imageName is nil. I think what > I’m doing is what the Resource Programming Guide says to do. How am I getting > it wrong? a. Yes, but did you check whether bundle or imageFileName is nil? Is imageFileName the correct path to where the files actually are? b. No one should be using path-based API any more, generally. You should use URL-based equivalents. c. IAC, there’s an easier way. For example: folderImage = NSImage.imageNamed (@“Folder”); No mucking about with paths or URLs! _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com