iOS SDK issues with file naming lets make tutorial

Monkey Targets Forums/iOS/iOS SDK issues with file naming lets make tutorial

Bladko(Posted 2011) [#1]
Hi,

I just wanted to start small discussion regarding some unusual errors in iOS SDK regarding graphic file formats.

It suppose to work like this but it does not (with several options).

file.png
file@...
file~ipad.png
file@...
file~iphone.png
file@...
file~iphone@...

It depends on XCODE and IOS version. I am not sure how many people are using iPad with ios 3 or 4 right now but last year only 3 was available. In iOS 3 there is no ~ipad support so far so developer should use just file.png. On the other hand Apple is planning to make @2x~ipad format in near future so stuff are going to be more complicated.

Can we just gather all this information and make a tutorial what should be written in which XCODE version ? What are Your experiences ?

EDIT:

From monkey level its Monkey\modules\mojo\native\mojo.ios.cpp
I know this was mentioned some time ago, but this is not regarding sources but regarding information how to use.

gxtkSurface *gxtkGraphics::LoadSurface( String path ){

	path=String( "data/" )+path;
	NSString *nspath=path.ToNSString();

	//This was apparently buggy in iOS2.x, but NO MORE?
	UIImage *uiimage=[ UIImage imageNamed:nspath ];

	if( !uiimage ) return 0;

......................................


Bladum