On 2014 May 06, at 11:23, Mills, Steve <smi...@makemusic.com> wrote: > How can we prevent this poor design choice from happening?
How about: Subclass NSDocumentController and override -[NSDocumentController reopenDocumentForURL:withContentsOfURL:display:completionHandler:]. I think that, to get your subclass to to be used by the app, all you need do is instantiate one in the main nib. It looks like that’s all I’ve done, and it works for me. If it doesn’t work for you, let us know and I’ll check my code more carefully. That being said, as Kyle and Quincey have noted, you might still have trouble with that “early" modal dialog. You may need to do that override *and* delay displaying your modal dialog. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com