1 /* 2 NSNibLoading.h 3 4 Copyright (C) 1997, 1999 Free Software Foundation, Inc. 5 6 Author: Simon Frankau <sgf@frankau.demon.co.uk> 7 Date: 1997 8 Author: Richard Frith-Macdonald <richard@branstorm.co.uk> 9 Date: 1999 10 11 This file is part of the GNUstep GUI Library. 12 13 This library is free software; you can redistribute it and/or 14 modify it under the terms of the GNU Lesser General Public 15 License as published by the Free Software Foundation; either 16 version 2 of the License, or (at your option) any later version. 17 18 This library is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 Lesser General Public License for more details. 22 23 You should have received a copy of the GNU Lesser General Public 24 License along with this library; see the file COPYING.LIB. 25 If not, see <http://www.gnu.org/licenses/> or write to the 26 Free Software Foundation, 51 Franklin Street, Fifth Floor, 27 Boston, MA 02110-1301, USA. 28 */ 29 30 #ifndef _GNUstep_H_NSNibLoading 31 #define _GNUstep_H_NSNibLoading 32 #import <GNUstepBase/GSVersionMacros.h> 33 34 #import <Foundation/NSObject.h> 35 #import <Foundation/NSBundle.h> 36 #import <Foundation/NSZone.h> 37 38 @class NSString; 39 @class NSDictionary; 40 @class NSMutableDictionary; 41 42 @interface NSObject (NSNibAwaking) 43 44 /* 45 * Notification of Loading 46 */ 47 - (void) awakeFromNib; 48 49 @end 50 51 52 @interface NSBundle (NSNibLoading) 53 54 + (BOOL) loadNibFile: (NSString *)fileName 55 externalNameTable: (NSDictionary *)context 56 withZone: (NSZone *)zone; 57 58 + (BOOL) loadNibNamed: (NSString *)aNibName 59 owner: (id)owner; 60 61 - (BOOL) loadNibFile: (NSString *)fileName 62 externalNameTable: (NSDictionary *)context 63 withZone: (NSZone *)zone; 64 65 #if OS_API_VERSION(GS_API_NONE, GS_API_NONE) 66 - (NSString *) pathForNibResource: (NSString *)fileName; 67 #endif // GS_API_NONE 68 @end 69 70 #endif /* _GNUstep_H_NSNibLoading */ 71