nib-named ( nib-name -- anNSNib )


Vocabulary
cocoa.nibs

Inputs
nib-namea string


Outputs
anNSNiban 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


: 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 ;