6
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.
7
("Apple") in consideration of your agreement to the following terms, and your
8
use, installation, modification or redistribution of this Apple software
9
constitutes acceptance of these terms. If you do not agree with these terms,
10
please do not use, install, modify or redistribute this Apple software.
12
In consideration of your agreement to abide by the following terms, and subject
13
to these terms, Apple grants you a personal, non-exclusive license, under Apple�s
14
copyrights in this original Apple software (the "Apple Software"), to use,
15
reproduce, modify and redistribute the Apple Software, with or without
16
modifications, in source and/or binary forms; provided that if you redistribute
17
the Apple Software in its entirety and without modifications, you must retain
18
this notice and the following text and disclaimers in all such redistributions of
19
the Apple Software. Neither the name, trademarks, service marks or logos of
20
Apple Computer, Inc. may be used to endorse or promote products derived from the
21
Apple Software without specific prior written permission from Apple. Except as
22
expressly stated in this notice, no other rights or licenses, express or implied,
23
are granted by Apple herein, including but not limited to any patent rights that
24
may be infringed by your derivative works or by other works in which the Apple
25
Software may be incorporated.
27
The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
28
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
29
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30
PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
31
COMBINATION WITH YOUR PRODUCTS.
33
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
34
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
35
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36
ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
37
OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
38
(INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
39
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41
Copyright � 2000-2005 Apple Computer, Inc., All Rights Reserved
46
// Our base class for creating a Mac OS nib.
48
//-----------------------------------------------------------------------------------
50
//-----------------------------------------------------------------------------------
52
//-----------------------------------------------------------------------------------
53
// TNib private constructor
54
//-----------------------------------------------------------------------------------
61
//-----------------------------------------------------------------------------------
62
// TNib Nib creation constructor
63
//-----------------------------------------------------------------------------------
66
CFStringRef inNibName )
69
verify_noerr( Init( inNibName ) );
72
//-----------------------------------------------------------------------------------
73
// TNib Nib creation constructor
74
//-----------------------------------------------------------------------------------
80
verify_noerr( Init( inNib ) );
83
//-----------------------------------------------------------------------------------
85
//-----------------------------------------------------------------------------------
90
DisposeNibReference( fNib );
93
//-----------------------------------------------------------------------------------
95
//-----------------------------------------------------------------------------------
106
//-----------------------------------------------------------------------------------
108
//-----------------------------------------------------------------------------------
112
CFStringRef inNibName )
117
err = CreateNibReference( inNibName, &nibRef );
118
require_noerr( err, CantCreateNibRef );
120
err = Init( nibRef );
126
//-----------------------------------------------------------------------------------
128
//-----------------------------------------------------------------------------------
133
WindowRef* outWindow )
135
return CreateWindowFromNib( fNib, inName, outWindow );
138
//-----------------------------------------------------------------------------------
140
//-----------------------------------------------------------------------------------
144
CFStringRef inMenuName,
147
return CreateMenuFromNib( fNib, inMenuName, outMenu );
150
//-----------------------------------------------------------------------------------
152
//-----------------------------------------------------------------------------------
156
CFStringRef inMenuBarName,
157
MenuBarHandle* outMenuBar )
159
return CreateMenuBarFromNib( fNib, inMenuBarName, outMenuBar );
162
//-----------------------------------------------------------------------------------
164
//-----------------------------------------------------------------------------------
168
CFStringRef inMenuBarName )
170
return SetMenuBarFromNib( fNib, inMenuBarName );
173
//-----------------------------------------------------------------------------------
175
//-----------------------------------------------------------------------------------