Native textfields + Macbook retina

When I switched my project over from my old Macbook 2010 to my Macbook Retina, I started my app up in the simulator but my native textfields can’t be edited. Everything worked perfectly before but seems to be broken now on the new model. I’ve got X-Code installed and everything. Don’t know what else I can try, or if it is a Corona bug?

Are there any news on this?
Mitaten [import]uid: 14018 topic_id: 27830 reply_id: 327830[/import]

We are still waiting for our Macbook Retina. We will not be able to reproduce the problem until then.

But this sounds like a (serious) Apple regression bug if it used to work and now it doesn’t with no other changes. Please file a bug directly with Apple.
http://www.coronalabs.com/blog/2012/06/06/a-complete-guide-to-filing-bugs-with-apple/
[import]uid: 7563 topic_id: 27830 reply_id: 112672[/import]

Hey Ewing I tried with some of my other apps and I noticed that regular newText() doesn’t work as well. The rendering of the text is not working at all, it looks glitchy and not readable, barely visible… So I’m suspecting there’s some bugs with the Corona simulator as well…

Thx,
Mitaten [import]uid: 14018 topic_id: 27830 reply_id: 112689[/import]

newText might be a Corona bug. Not sure. It’s hard to say. But native.textField is almost completely Apple’s domain. That sounds like an Apple bug that needs to be filed.

[import]uid: 7563 topic_id: 27830 reply_id: 112692[/import]

Ewing, feels like a bug as big as this wouldn’t pass Apples eyes don’t you think? I’m pretty sure they tested their SDK on the Macbook Retina before release. What would make more sense is a Corona simulator bug since you haven’t gotten your new Macbooks yet you haven’t had the chance to test your SDK on it yet… I’ll wait with the Apple bugreport til you guys have tested it… Because besides that there are lots of other things not working properly in the simulator

Can you keep this thread posted with any success of the bugs? Would be good to know the progress of the fixes

Thanks,
Mitaten :slight_smile: [import]uid: 14018 topic_id: 27830 reply_id: 112750[/import]

Nobody is crazy enough to try to put native widgets on top of OpenGL on desktops except us. Apple technically supports this, but it has been buggy as heck since it (Core Animation) debuted in 2007. They don’t test this path well. I have dozens of bugs in this area over the past 5 years. Seriously, file your bug with Apple. Mountain Lion is shipping very soon. I don’t want to be stuck with another bug that could have been avoided for another OS cycle because somebody didn’t report an obvious regression bug.

[import]uid: 7563 topic_id: 27830 reply_id: 112756[/import]

Alright I’m filing it now, but just want to say it works on the device & XCode simulator… So I’m still guessing it’s Corona, but I’ll still file the bug report

Thanks, [import]uid: 14018 topic_id: 27830 reply_id: 112766[/import]

Great. Here is some extra information to add to your bug report:

Corona uses layer-backed views for NSTextField and other native widgets which are superimposed on a CAOpenGLLayer. All of these things are child views/layers of a NSView subclass acting as a layer host view. Corona is NOT using a layer-backed NSOpenGLView. In addition, the simulator is using a transparent NSWindow and the skin is done via an IKImageView. We know that this aggressive combination of OpenGL, layer-backed views, and CAOpenGLLayer has not been heavily tested by Apple in the past and because this works fine in the non-retina case, we suspect this is an Apple bug.

[import]uid: 7563 topic_id: 27830 reply_id: 112795[/import]

Alright, thanks

I just opened the simulator and gave it another try though and now the textfields magically work… They can be edited and everything works great like before. For anyone experiencing the same problem, I don’t know what the problem was, but I didn’t update or change anything at all. All I remember doing before giving my app another try in the simulator was build for the X-Code simulator

Thanks, [import]uid: 14018 topic_id: 27830 reply_id: 112801[/import]

Not sure if this is being addressed somewhere else but working on my Retina mac any display.newText displays as a big blotch in the Corona Simulator. It works fine in the Xcode simulator though and obviously device.

Using build 840 [import]uid: 33866 topic_id: 27830 reply_id: 113726[/import]

A tip!

If you are on your Retina MackBook Pro and something messes up in the Corona Simulator then there is an option by right clicking on the Corona Simulator app then Get Info and in there there is an Open is Low Resolution tick box, tick that and everything is normal again!

[import]uid: 33866 topic_id: 27830 reply_id: 113744[/import]

Thank you Cl-apps! Worked beautifully!! [import]uid: 14018 topic_id: 27830 reply_id: 113759[/import]

Thanks for this post. I can confirm that switching to “Open in Low Resolution” sets everything back to normal. [import]uid: 90878 topic_id: 27830 reply_id: 113930[/import]