Hi,

did you look at cocoadev/forum? If you want actualy the same, there is a disscusion about this.

HTH

Op 7 sep 2009, om 07:24 heeft Oftenwrong Soong het volgende geschreven:

Hi All,

In my doc-based app, I need to initially display a startup window instead of a new empty document. Its function would be somewhat akin to that of the Template Chooser that comes up when you launch Pages.

I've scoured the texts about the document architecture but cannot find pointers on how to do this.

So far this is the best idea I could come up with:

Implement NSApplication delegate applicationShouldOpenUntitledFile:, returning NO, and implement applicationDidFinishLaunching:, in which the startup window is launched. Then I manually call makeUntitledDocumentOfType:error.

It seems an ugly hack and I have a feeling it won't work 100% right. Is there a better way to implement an initial window in a doc-based app?

Thanks,
Soong





_______________________________________________

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/appledev%40xs4all.nl

This email sent to apple...@xs4all.nl


_______________________________________________

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