-
Notifications
You must be signed in to change notification settings - Fork 102
viewWillAppear called twice #32
Comments
The explicit call is required since viewWillAppear was not a system It could be updated to skip the call when on Yosemite. On 15 Dec 2014, at 22:17, Scott Talbert wrote:
|
Ah, so setContentView only causes viewWillAppear on Yosemite? What is the preferred way to check the OSX version? NSAppKitVersionNumber? |
Hi guys, how about |
Yes, only on Yosemite, the documentation says it’s called when:
I would go with @shpakovski suggestion of instancesRespondsToSelector: On 16 Dec 2014, at 22:51, Scott Talbert wrote:
|
So we'd want something like this?
|
Yes, but it would be great to test on earlier OS X versions before shipping :) Thanks in advance for the pull request! |
Would also be good to add a comment about the code, as I’m sure On 22 Dec 2014, at 13:48, Vadim Shpakovski wrote:
|
I believe the comment with URL to the current page would work best :) |
In setSelectedViewController, it seems that viewWillAppear ends up getting called twice. It is called explicitly once, but calling setContentView on the window also seems to cause it to be called.
Is the explicit call needed?
The text was updated successfully, but these errors were encountered: