Hey All, quick question.

I'm trying to figure out how to stop untitled documents from opening
when the application first runs. I've been looking on google, and
tried some different combinations of method overrides on
NSDocumentController. I figured out how to stop the untitled doc from
opening, by overriding "- (id)makeUntitledDocumentOfType:(NSString
*)typeName error:(NSError **)outError", but the problem is that it's
required to give it an NSError, which is fine. But the the application
automatically opens up an alert error.

if anyone has a quick pointer in the right direction that would be awesome.

Thanks.
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to