malcommac / DMSplitView

New NSSplitView class with multiple subviews resize behaviors and animated transitions
116 stars 24 forks source link

Splitview inconsistent state error when using autoSaveName to restore state of split view #6

Open brendand opened 11 years ago

brendand commented 11 years ago

When you set an autoSaveName for the split view, collapse a view, then quit and re-launch the app, the following error is displayed:

<DMSplitView: 0x100192e20>: the delegate <DMSplitView: 0x100192e20> was sent -splitView:resizeSubviewsWithOldSize: and left the subview frames in an inconsistent state: Split view bounds: {{0, 0}, {816, 337}} Subview frame: {{0, 0}, {100, 337}} Subview frame: {{110, 0}, {644, 337}} Subview frame: {{764, 0}, {152, 337}} DMSplitViewExample[41225:303] The outer edges of the subview frames are supposed to line up with the split view's bounds' edges. NSSplitView is working around the problem, perhaps at the cost of more redrawing. (This message is only logged once per NSSplitView.)

The same thing is happening in my app as happens in the example app.

WrightsCS commented 8 years ago

Are there any updates to this, or was a fix found?

brendand commented 8 years ago

No idea. I moved on and I'm using AutoLayout with regular NSSplitViews now. I no longer use DMSplitView. And I don't see that error anymore.