Problem using Mac os Lion autostart

I use the autostart function for my mac application. I have enabled autorun for my mainWindow, as well as for my child views. But when expanding the window, only my window expands in size, but not the children. And when I start the application, I get the following message in the console

"The layout still needs to be updated after the call - [WebHTMLView layout]. WebHTMLView or one of its superclasses may have an overridden -layout without calling super. Or something may have a dirty layout in the middle of the update. Both are programming errors in Cocoa Autolayout. The first may occur if some pre-Cocoa Autolayout class had a method called layout, but it should be fixed.

Please, help!

+4
source share
2 answers

The log is probably not related to your issue.

For your problem, choose the view you expect, stay away from the window, but it is not. You should see the limitations associated with this view as blue. It will remain fixed if and only if you see a restriction that binds it. You can explicitly add restrictions in Editor> Alignment and Editing> Contacts menu.

The magazine is related to the fact that the web view implements this method and needs rev, but basically it [1] is harmless.

[1] Perhaps the html layout in the web view ends up running more often than necessary.

+3
source

Have you checked it,

WebHTMLView or one of its superclasses can have an overridden -layout without calling super.

How is the error text explained? WebHTMLView is your class?

As the saying goes:

The first one will most likely occur if some pre-Cocoa Autolayout class had a method called layout, but it should be fixed.

+2
source

All Articles