Re: [MonoTouch] Retina iPad Graphics

2012-03-14 Thread AndyW
Thanks for the update Jeff. 

I'm wondering if this could just be a simulator issue, and all might work as
expected on the device.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4471708.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-14 Thread Jeff Stedfast
Hey Andy,

Could you submit a bug report about this for MonoTouch (maybe it's a bug in
MonoTouch? I can't find anything that MonoDevelop is doing wrong) at
http://bugzilla.xamarin.com?

Let me know the bug # when you submit it so that I can Cc myself on it.

Thanks,

Jeff

On Wed, Mar 14, 2012 at 8:26 AM, AndyW andywh...@gmail.com wrote:

 Thanks for the update Jeff.

 I'm wondering if this could just be a simulator issue, and all might work
 as
 expected on the device.

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4471708.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-14 Thread AndyW
Thanks Jeff, please see: https://bugzilla.xamarin.com/show_bug.cgi?id=3898

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4472540.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-13 Thread AndyW

Jeff Stedfast wrote
 
 Did you set the Build Action of the ipad @2x icons as Content in your
 project? If not, does that fix things?
 

Thanks Jeff, but yeah they are set as content. So I'm unsure why its not
working correctly.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4468747.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-13 Thread Nic Wise
If it's only in IB, I'd suspect one of two things:

1. IB 4.3.1 is getting it wrong (can you recreate in XCode only?)
2. MT is getting it when when it's building the xcode project for you
before loading IB.

Sounds like Jeff's area tho.




On Tue, Mar 13, 2012 at 10:45, AndyW andywh...@gmail.com wrote:

 Jeff Stedfast wrote

 Did you set the Build Action of the ipad @2x icons as Content in your
 project? If not, does that fix things?


 Thanks Jeff, but yeah they are set as content. So I'm unsure why its not
 working correctly.

 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4468747.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-13 Thread AndyW

Nic Wise wrote
 
 If it's only in IB, I'd suspect one of two things:
 1. IB 4.3.1 is getting it wrong (can you recreate in XCode only?)
 

Done some more research

* Using just XCode the 2x images are correctly used in the retina iPad
simulator. 
* Starting a new project in MD and setting the image in IB, like Xcode does
not work in iPad retina.



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4469453.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-13 Thread Jeff Stedfast
Hi Andy,

I've got a few more things for you to check...

In your MonoTouch project's .xib, does it refer to the images as
ImageName.png or ImageName? It should be using the latter form, but it
sounds like it is maybe using the former.

How about for your working Xcode project? Which form does it use?

Jeff

On Tue, Mar 13, 2012 at 12:05 PM, AndyW andywh...@gmail.com wrote:


 Nic Wise wrote
 
  If it's only in IB, I'd suspect one of two things:
  1. IB 4.3.1 is getting it wrong (can you recreate in XCode only?)
 

 Done some more research

 * Using just XCode the 2x images are correctly used in the retina iPad
 simulator.
 * Starting a new project in MD and setting the image in IB, like Xcode does
 not work in iPad retina.



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4469453.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-13 Thread AndyW
Both refer to ImageName, I've tried without the device modifiers and the
iPad Retina simulator does not pic up the normal 2x images too.


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4469698.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-13 Thread AndyW
I've created a test project here using MonoTouch, if you look at the images
and then run the simulator and then retina simulator, you'll see both use
the 1x version.

http://dl.dropbox.com/u/10852937/iPadMTRetinaTest.zip

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4469719.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-13 Thread Jeff Stedfast
Thanks Andy,

I can reproduce here. I'll try to figure out what the issue is...

Jeff

On Tue, Mar 13, 2012 at 1:38 PM, AndyW andywh...@gmail.com wrote:

 I've created a test project here using MonoTouch, if you look at the images
 and then run the simulator and then retina simulator, you'll see both use
 the 1x version.

 http://dl.dropbox.com/u/10852937/iPadMTRetinaTest.zip

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4469719.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-13 Thread Jeff Stedfast
I am pulling my hair out trying to figure out what the issue is :-\

* both the arrowup.png and arro...@2x.png are installed into the app
bundle, so that ain't the problem...
* I set the MonoTouch's project Deployment Target to iOS 5.1  the SDK to
5.1 (since I noticed that's what Xcode was doing)... didn't make a
difference
* I tried making the ObjC and MonoTouch apps use the same exact .xib file
in case that was the issue... nope
* I hex-diffed the generated .nibs and found they were different, so...
   * I dug into the exact command-line arguments and environment variables
that Xcode uses to compile nibs
   * fixed MonoDevelop to use the exact same command-line (just changed the
order of args and fixed the exported PATH env)
   * oddly, the results are *still* different :-(
* I tried copying the nib generated by Xcode into the MT app bundle
installed in the iPhone Simulator directory... no luck
* I tried copying the nib generated by MonoDevelop into Xcode's app bundle,
that still works

At this point, I think it's safe to say, that even though the generated
.nib's are different, that it's not the cause of the problems...

Unfortunately, that also means I'm at a loss to explain what is wrong :-(

Jeff

On Tue, Mar 13, 2012 at 2:50 PM, Jeff Stedfast j...@xamarin.com wrote:

 Thanks Andy,

 I can reproduce here. I'll try to figure out what the issue is...

 Jeff


 On Tue, Mar 13, 2012 at 1:38 PM, AndyW andywh...@gmail.com wrote:

 I've created a test project here using MonoTouch, if you look at the
 images
 and then run the simulator and then retina simulator, you'll see both use
 the 1x version.

 http://dl.dropbox.com/u/10852937/iPadMTRetinaTest.zip

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4469719.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Retina iPad Graphics

2012-03-12 Thread AndyW
I've got 4 images named:

image~ipad.png
image~iphone.png
image@2x~ipad.png
image@2x~iphone.png

When I use the iPhone Retina simulator it picks up the 2x version, but the
iPad retina simulator does not? Is this something I've messed up or is it
something coming in as MT update?

Thanks

Andy 

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4466319.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-12 Thread AndyW
Thanks Nic, but I'm basing my naming on this Apple document:
https://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW11
and this stackoverflow answer:
http://stackoverflow.com/questions/9611061/how-to-support-both-ipad-and-iphone-retina-graphics-in-universal-apps

which says you can do: 

basenameorientation_modifierscale_modifierdevice_modifier.png

I've found that my images appear @2x when I do UIImage.FromFile but NOT when
set from IB for iPad Retina.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4466507.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Retina iPad Graphics

2012-03-12 Thread Jeff Stedfast
Hi AndyW,

Did you set the Build Action of the ipad @2x icons as Content in your
project? If not, does that fix things?

Jeff

On Mon, Mar 12, 2012 at 11:17 AM, AndyW andywh...@gmail.com wrote:

 I've got 4 images named:

 image~ipad.png
 image~iphone.png
 image@2x~ipad.png
 image@2x~iphone.png

 When I use the iPhone Retina simulator it picks up the 2x version, but the
 iPad retina simulator does not? Is this something I've messed up or is it
 something coming in as MT update?

 Thanks

 Andy

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4466319.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch