mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 18:52:19 +00:00
Added beginnings of tabbed documents support.
Reviewed by me.
This commit is contained in:
1 parent
668540d0ce
commit
20d14d2f81
3 files changed
+197
-31
No files matched your search
@@ -248,6 +248,7 @@ var CPWindowSaveImage = nil,
|
||||
BOOL _hasShadow;
|
||||
BOOL _isMovableByWindowBackground;
|
||||
|
||||
BOOL _supportsMultipleDocuments;
|
||||
BOOL _isDocumentEdited;
|
||||
BOOL _isDocumentSaving;
|
||||
|
||||
@@ -441,6 +442,19 @@ CPTexturedBackgroundWindowMask
|
||||
return _CPBorderlessBridgeWindowView;
|
||||
}
|
||||
|
||||
- (void)setSupportsMultipleDocuments:(BOOL)shouldSupportMultipleDocuments
|
||||
{
|
||||
shouldSupportMultipleDocuments = !!shouldSupportMultipleDocuments;
|
||||
|
||||
// FIXME: throw exception if window controller already has multiple documents and shouldSupportMultipleDocuments === NO
|
||||
_supportsMultipleDocuments = shouldSupportMultipleDocuments;
|
||||
}
|
||||
|
||||
- (BOOL)supportsMultipleDocuments
|
||||
{
|
||||
return _supportsMultipleDocuments;
|
||||
}
|
||||
|
||||
- (void)awakeFromCib
|
||||
{
|
||||
if (_initialFirstResponder)
|
||||
|
||||
Reference in new issue
Block a user