Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 08 Mar 2012
Offline Last Active Mar 08 2012 09:45 AM

Topics I've Started

Trouble following Lazyfoo tutorials with Xcode

08 March 2012 - 01:26 AM

I'm trying to get more familiar with SDL by going through the lazyfoo tutorials, and I'm only on lesson 01, but I'm having trouble with relative paths and getting 'hello.bmp' to load properly with Xcode.

If I go to Project -> Edit Active Executable and changing Set The Working Directory to 'Project Directory', that gets the image to load, but that won't work when I need to distribute the .app .
I've been Googling for literally an hour now and I feel like an idiot because I get the feeling this is one of those things that is supposed to be brain-dead simple, but for whatever reason this time around, isn't.

Does anyone know how to include 'hello.bmp' in the .app and how to call it from the code so that it loads properly?