Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chrono1081

macrumors G3
Original poster
Jan 26, 2008
8,810
5,580
Isla Nublar
I've been porting an SDL project I've been working on in windows over to Mac OS but one thing has me completely stumped.

When I call SDL_WM_SetIcon() (yes its where its supposed to be) I get a dock icon just fine but I never get an icon in the title bar of the program. I even tried adding the icon to the plist (sorry I think thats what its called) and I get the same results. I'm new to XCode and mac programming so that could be a factor but with SDL everything on windows ported just fine except for this : / Anyone have any ideas?
 
Perhaps this is because Mac OS X programs don't normally have title bar icons, and therefore Mac OS X doesn't support it. I wouldn't worry about this in any case, unless you're overriding the menu that appears when that icon is clicked, and if the preceding situation does apply to you, don't put essential commands there, as they won't appear for Mac users.
 
Typically you can't get an icon in the title bar if your window doesn't have a representedURL. I'm pretty sure it's against the human interface guidelines to have an icon in the title bar of a window that does not represent a document.
 
Ah ok that makes sense cause everytime I've seen the icon its something thats a document (PDFs, Circus Ponies Notebook, etc).

Thank you guys for the replies :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.