It doesn't. When you walk through the steps of the NY NON resident return, you will see a spot that says adjustment to income. It will allow you to remove the capital gains that were not NY sourced in this section.
The reason is appears to start is that NY starts with your federal income and then you make adjustments from there.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"