views:

57

answers:

0

First: The error. I'm getting a app termination because of a NSInvalidArgumentException, the reason being that "Popovers cannot be presented from a view which does not have a window."

Now, an explanation of what's going on: I've got a button on the RootView of the SplitView that removes the SplitView as the main view of the Window, and replaces it with a menu (done so because the menu is actually higher in the program hierarchy. However, when I hit the button when the simulator is in the Portrait mode (i.e. the RootView is in the Popup), I get the error I described above.

I apologize for not having any code, but most of it is very similar to the default SplitView application you can create in XCode, apart from some variable names. I'm working on two separate computers in a fairly strict environment, so the coding computer isn't allowed on the 'net.

Anyways, does anyone have an idea how I should go around doing this?

related questions