开发者

How can I hide the save panel when I'm using a NSDocument

So I'm trying to play around with WebKit and create my own browser. However, now I'm kind of stuck where I can't hide the save panel when I try to close my window. I can't find any method in the NS开发者_高级运维Document reference that hides the panel. Does anyone know how I can solve that? Thanks.


I'd have to say that NSDocument is a slightly odd choice for a browser app. The Cocoa document architecture is really designed for editor-type applications that load and save files from disk, whereas there is no real concept of a "document" in a browser.

Why not just implement a main controller that manages a bunch of window controllers? What does the document architecture give you that you feel your app needs?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜