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 NSDocument reference that hides the panel. Does anyone know how I can solve that? Thanks.
问问题
158 次
1 回答
0
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?
于 2011-08-23T00:26:11.563 回答