home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSNibLoading.h < prev    next >
Text File  |  1996-10-17  |  1KB  |  31 lines

  1. /*
  2.     NSNibLoading.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8.  
  9. #import <Foundation/NSBundle.h>
  10.  
  11. @class NSString, NSDictionary;
  12.  
  13. @interface NSBundle(NSNibLoading)
  14.  
  15. + (BOOL)loadNibFile:(NSString *)fileName externalNameTable:(NSDictionary *)context withZone:(NSZone *)zone;
  16.     /* This is the primitive that loads the contents of a .nib file.  Context holds key value pairs that can name objects that are referenced by the objects within the nib file (e.g., "NSOwner").  Objects from the nib are allocated in zone. */
  17.  
  18. + (BOOL)loadNibNamed:(NSString *)aNibName owner:(id)owner;
  19.    /* A cover method where an external name table is created with owner as the only element with key "NSOwner".  Objects from the nib are allocated in owner's zone. If there is a bundle for owner's class, this method looks in that bundle for a nib with the given file name.  Otherwise, it looks in the mainBundle. */
  20.  
  21. - (BOOL)loadNibFile:(NSString *)fileName externalNameTable:(NSDictionary *)context withZone:(NSZone *)zone;
  22.     /* This is the instance version of the above class method by the same name. */
  23.  
  24. @end
  25.  
  26.  
  27. @interface NSObject(NSNibAwaking)
  28. - (void)awakeFromNib;
  29. @end
  30.  
  31.