I have a basic document based application. When I launch it and use the menu to make a new file it opens an untitled document window about 80% of the time. The other 20% it gives me this error:
2014-10-06 14:22:50.648 Stratimator-5[8564:303] *** -[CustomDocument windowNibName]: unrecognized selector sent to object <CustomDocument @0x6000000eeb80: OSAID(59) ComponentInstance(0x810000)>
(There’s a whole lot more to the error but I didn’t want to fill the page with it)
If I type ⌘N, which I always figured was identical to using the menu, it opens an untitled document window about 20% of the time, the error about 80% of the time.
There is no apparent pattern to the behavior.
So 2 questions -
What would cause this error to occur so randomly? What’s the difference between ⌘N right now and ⌘N 2 seconds from now except the time of day?
Why would it occur more often with ⌘N than with the menu equivalent?
Thanks,
Greg