Handbook
Glossary
nib-named ( nib-name -- anNSNib )
Vocabulary
cocoa
.
nibs
Inputs
nib-name
a
string
Outputs
anNSNib
an instance of NSNib
Word description
Looks up the
.nib
in the main bundle with the given name, instantiating an autoreleased NSNib object. Useful when combined with the
nib-objects
word.
f
is returned in case of error.
See also
nib-objects
Definition
USING:
cocoa.application
cocoa.classes
cocoa.messages
cocoa.runtime
kernel
;
IN:
cocoa.nibs
:
nib-named
( nib-name -- anNSNib )
<NSString>
NSNib
{
id
{
id
SEL
}
}
"alloc"
send
swap
f
{
id
{
id
SEL
id
id
}
}
"initWithNibNamed:bundle:"
send
[
{
id
{
id
SEL
}
}
"autorelease"
send
]
?call
;