<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SDL Tips for Mac OS X</title>
	<atom:link href="http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 20:06:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Mark Vaughn</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-2546</link>
		<dc:creator>Mark Vaughn</dc:creator>
		<pubDate>Thu, 12 Jan 2012 15:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-2546</guid>
		<description>No need to reply I figured it out.

Thanks Anyway,

Mark Vaughn</description>
		<content:encoded><![CDATA[<p>No need to reply I figured it out.</p>
<p>Thanks Anyway,</p>
<p>Mark Vaughn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Vaughn</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-2545</link>
		<dc:creator>Mark Vaughn</dc:creator>
		<pubDate>Thu, 12 Jan 2012 04:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-2545</guid>
		<description>Thanks for the tips Mark. I found that idevgames.com is a good place to go too. My one final question would be what frameworks am I supposed to include? I have SDL_image, SDL_mixer, SDL_ttf, SDL, and the Cocoa framework all linked together, but I get a Mach-O Linker error for some reason (see error message below). Is there another framework that I am missing? 
What I am doing is calling a function in SDLmain.m that hides my application from my main.cpp.

// Code in SDLMain.m
void HideMySDLApp(void)
{
    [NSApp hide:nil];
}

// Code in main.cpp
 if (keypressed[LCOMMAND] &amp;&amp; keypressed[Hh])
        {
            extern void HideMySDLApp(void);
            HideMySDLApp();
        }
    
}

Undefined symbols for architecture x86_64:
  &quot;HideMySDLApp()&quot;, referenced from:
      unknown() in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

&quot;unknown() is the name of my function.&quot;</description>
		<content:encoded><![CDATA[<p>Thanks for the tips Mark. I found that idevgames.com is a good place to go too. My one final question would be what frameworks am I supposed to include? I have SDL_image, SDL_mixer, SDL_ttf, SDL, and the Cocoa framework all linked together, but I get a Mach-O Linker error for some reason (see error message below). Is there another framework that I am missing?<br />
What I am doing is calling a function in SDLmain.m that hides my application from my main.cpp.</p>
<p>// Code in SDLMain.m<br />
void HideMySDLApp(void)<br />
{<br />
    [NSApp hide:nil];<br />
}</p>
<p>// Code in main.cpp<br />
 if (keypressed[LCOMMAND] &amp;&amp; keypressed[Hh])<br />
        {<br />
            extern void HideMySDLApp(void);<br />
            HideMySDLApp();<br />
        }</p>
<p>}</p>
<p>Undefined symbols for architecture x86_64:<br />
  &#8220;HideMySDLApp()&#8221;, referenced from:<br />
      unknown() in main.o<br />
ld: symbol(s) not found for architecture x86_64<br />
clang: error: linker command failed with exit code 1 (use -v to see invocation)</p>
<p>&#8220;unknown() is the name of my function.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-2542</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Sun, 08 Jan 2012 00:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-2542</guid>
		<description>Mark,

This is a good place to ask. I don&#039;t know what Apple&#039;s Mac App Store policy for apps that don&#039;t support the Commmand-H shortcut. Apple does have a forum for paid developers where developers can ask questions about the Mac App Store. The forum is at the following URL:

&lt;a href=&quot;https://devforums.apple.com/community/mac/appstore&quot; rel=&quot;nofollow&quot;&gt;https://devforums.apple.com/community/mac/appstore&lt;/a&gt;

Carbon would allow you to hide windows and applications using C++, but you can&#039;t write 64-bit Carbon apps, which means you have to use Objective-C if your game is going to be a 64-bit application. The following Stack Overflow question may be of interest to you:

&lt;a href=&quot;http://stackoverflow.com/questions/452435/is-there-a-way-to-programmatically-hide-an-carbon-application-on-osx&quot; rel=&quot;nofollow&quot;&gt;Is there a way to programmatically hide an carbon application on osx?&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>This is a good place to ask. I don&#8217;t know what Apple&#8217;s Mac App Store policy for apps that don&#8217;t support the Commmand-H shortcut. Apple does have a forum for paid developers where developers can ask questions about the Mac App Store. The forum is at the following URL:</p>
<p><a href="https://devforums.apple.com/community/mac/appstore" rel="nofollow">https://devforums.apple.com/community/mac/appstore</a></p>
<p>Carbon would allow you to hide windows and applications using C++, but you can&#8217;t write 64-bit Carbon apps, which means you have to use Objective-C if your game is going to be a 64-bit application. The following Stack Overflow question may be of interest to you:</p>
<p><a href="http://stackoverflow.com/questions/452435/is-there-a-way-to-programmatically-hide-an-carbon-application-on-osx" rel="nofollow">Is there a way to programmatically hide an carbon application on osx?</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Vaughn</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-2541</link>
		<dc:creator>Mark Vaughn</dc:creator>
		<pubDate>Sat, 07 Jan 2012 21:03:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-2541</guid>
		<description>Sorry about posting in the wrong place (is this good?). I have a follow up question: does anyone know if Apple will accept Mac apps that don&#039;t allow you to use the Hide Window shortcut (command + h)? If they don&#039;t, does anyone know how to code this with c++? 

Thanks,

Mark Vaughn</description>
		<content:encoded><![CDATA[<p>Sorry about posting in the wrong place (is this good?). I have a follow up question: does anyone know if Apple will accept Mac apps that don&#8217;t allow you to use the Hide Window shortcut (command + h)? If they don&#8217;t, does anyone know how to code this with c++? </p>
<p>Thanks,</p>
<p>Mark Vaughn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wolfos</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-2392</link>
		<dc:creator>Wolfos</dc:creator>
		<pubDate>Fri, 27 May 2011 14:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-2392</guid>
		<description>Thanks, this was just what I was looking for.</description>
		<content:encoded><![CDATA[<p>Thanks, this was just what I was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Dowler</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-2306</link>
		<dc:creator>Shawn Dowler</dc:creator>
		<pubDate>Mon, 07 Feb 2011 07:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-2306</guid>
		<description>@Click170 The Mac mantra of &quot;It just Works&quot; does not apply to developers. Apple expects developers to put in more effort on the front end so users, in theory, have to put in less effort to use the applications. I think you just experienced what this means for developers.</description>
		<content:encoded><![CDATA[<p>@Click170 The Mac mantra of &#8220;It just Works&#8221; does not apply to developers. Apple expects developers to put in more effort on the front end so users, in theory, have to put in less effort to use the applications. I think you just experienced what this means for developers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Click170</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-2283</link>
		<dc:creator>Click170</dc:creator>
		<pubDate>Thu, 23 Dec 2010 08:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-2283</guid>
		<description>Oops.
&quot;more better&quot; was the result of a bad edit, not bad grammar.</description>
		<content:encoded><![CDATA[<p>Oops.<br />
&#8220;more better&#8221; was the result of a bad edit, not bad grammar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Click170</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-2282</link>
		<dc:creator>Click170</dc:creator>
		<pubDate>Thu, 23 Dec 2010 07:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-2282</guid>
		<description>THANKYOU!!
Good god, batman! I&#039;ve spent the last few days trying to figure out why the hell building my project in Xcode gave a different result than building it on my linux box from the command line.

A black window would come up for 2 seconds, then disappear.
On linux, it works fine, it shows the images and quits instead if just displaying black.

I had an idea it had to do with the path, but trying to figure out all the little nuances of using Xcode as well as trying to figure this out was a little overwhelming.
But your post laid out my problem and told me exactly how to fix it. Again, thank you!



Xcode is really overwhelming for new users. Almost too much so, I&#039;d say.  When the command line looks like a more better alternative, something is wrong.  
Should you really have to pick up a textbook to figure out how to get it to just work? I thought that was the mac mantra, &quot;it just works&quot;.  It certainly doesn&#039;t &quot;just work&quot; in this case lol</description>
		<content:encoded><![CDATA[<p>THANKYOU!!<br />
Good god, batman! I&#8217;ve spent the last few days trying to figure out why the hell building my project in Xcode gave a different result than building it on my linux box from the command line.</p>
<p>A black window would come up for 2 seconds, then disappear.<br />
On linux, it works fine, it shows the images and quits instead if just displaying black.</p>
<p>I had an idea it had to do with the path, but trying to figure out all the little nuances of using Xcode as well as trying to figure this out was a little overwhelming.<br />
But your post laid out my problem and told me exactly how to fix it. Again, thank you!</p>
<p>Xcode is really overwhelming for new users. Almost too much so, I&#8217;d say.  When the command line looks like a more better alternative, something is wrong.<br />
Should you really have to pick up a textbook to figure out how to get it to just work? I thought that was the mac mantra, &#8220;it just works&#8221;.  It certainly doesn&#8217;t &#8220;just work&#8221; in this case lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Howlett</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-463</link>
		<dc:creator>Phil Howlett</dc:creator>
		<pubDate>Sun, 21 Feb 2010 13:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-463</guid>
		<description>Hi Mark,
Found my problem. I didn&#039;t click the &quot;Create Folder References&quot; option so my data folders were displaying as yellow folders (groups) instead of real folders (blue).
Thanks so much for the speedy response, your post lead me in the right direction.
Cheers,
Phil.</description>
		<content:encoded><![CDATA[<p>Hi Mark,<br />
Found my problem. I didn&#8217;t click the &#8220;Create Folder References&#8221; option so my data folders were displaying as yellow folders (groups) instead of real folders (blue).<br />
Thanks so much for the speedy response, your post lead me in the right direction.<br />
Cheers,<br />
Phil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://meandmark.com/blog/2009/12/sdl-tips-for-mac-os-x/comment-page-1/#comment-460</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Sun, 21 Feb 2010 03:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.meandmark.com/blog/files/sdl-tips-mac.html#unique-entry-id-1#comment-460</guid>
		<description>Phil,

As a test I tried adding two folders, one named Images and one named Sounds, to an SDL project. After building the project I checked the application package. Both folders were in the Resources directory.

The first thing I did was move the Images and Sounds folders inside the Xcode project&#039;s folder. Next, I added the folders to the project. After clicking the Add button, a sheet opened. I clicked the Create Folder References for any added folders radio button and clicked the Add button. In the Groups and Files list on the left side of Xcode&#039;s project window were two blue folders: Images and Sounds. That&#039;s how I got the folders to be added to the Resources folder inside the application bundle.

Examine your project&#039;s Copy Bundles Resources build phase to see how the files are being copied to the Resources folder. In the Groups and Files list, there should be a Targets entry with a disclosure triangle. Click it and you will see the name of your target with another disclosure triangle. Click that disclosure triangle. Now you will see a collection of build phases. There should be one named Copy Bundle Resources. Click the disclosure triangle next to Copy Bundle Resources. Make sure there is a blue folder for each folder you&#039;ve added to the project.

I hope this helps.</description>
		<content:encoded><![CDATA[<p>Phil,</p>
<p>As a test I tried adding two folders, one named Images and one named Sounds, to an SDL project. After building the project I checked the application package. Both folders were in the Resources directory.</p>
<p>The first thing I did was move the Images and Sounds folders inside the Xcode project&#8217;s folder. Next, I added the folders to the project. After clicking the Add button, a sheet opened. I clicked the Create Folder References for any added folders radio button and clicked the Add button. In the Groups and Files list on the left side of Xcode&#8217;s project window were two blue folders: Images and Sounds. That&#8217;s how I got the folders to be added to the Resources folder inside the application bundle.</p>
<p>Examine your project&#8217;s Copy Bundles Resources build phase to see how the files are being copied to the Resources folder. In the Groups and Files list, there should be a Targets entry with a disclosure triangle. Click it and you will see the name of your target with another disclosure triangle. Click that disclosure triangle. Now you will see a collection of build phases. There should be one named Copy Bundle Resources. Click the disclosure triangle next to Copy Bundle Resources. Make sure there is a blue folder for each folder you&#8217;ve added to the project.</p>
<p>I hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/szymczyk/public_html/blog/wp-includes/feed-rss2-comments.php:10) in <b>/home/szymczyk/public_html/blog/wp-includes/pluggable.php</b> on line <b>897</b><br />

