mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-25 11:50:42 +00:00
Added beginnings of tabbed documents support.
Reviewed by me.
This commit is contained in:
@@ -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