/usr/include/GNUstep/Renaissance/GSMarkupBundleAdditions.h is in librenaissance0-dev 0.9.0-4build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | /* -*-objc-*-
GSMarkupBundleAdditions.h
Copyright (C) 2002 Free Software Foundation, Inc.
Author: Nicola Pero <n.pero@mi.flashnet.it>
Date: 2002
This file is part of GNUstep Renaissance
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
*/
#ifndef _GNUstep_H_GSMarkupBundleAdditions
#define _GNUstep_H_GSMarkupBundleAdditions
#ifndef GNUSTEP
# include <Foundation/Foundation.h>
#else
# include <Foundation/NSObject.h>
# include <Foundation/NSBundle.h>
#endif
@class NSString;
@class NSDictionary;
@class NSMutableDictionary;
@class NSNotification;
@interface NSObject (GSMarkupAwaking)
/*
* This method is called, after the objects have been created and the
* connections fully established. It is called for all objects
* created from a gsmarkup which implement it, and for the file owner
* if it implements it.
*/
- (void) awakeFromGSMarkup;
@end
/* The following notification is posted after the gsmarkup file has been
* loaded. The notification object is the file owner (or nil if no file
* owner was set); the userInfo is a dictionary, where the object for
* the key 'NSTopLevelObjects' is the array of top-level objects which
* have been loaded from the gsmarkup file.
*
* If the file owner responds to the -bundleDidLoadGSMarkup: method
* below, it is automatically invoked passing the notification as
* argument, so that you don't need to manually register the
* file owner with the notification center.
*
* This stuff is useful if you need to keep track of the top-level
* objects, so that you can easily destroy them when you no longer
* need them.
*/
extern NSString *GSMarkupBundleDidLoadGSMarkupNotification;
@interface NSObject (GSMarkupTopLevelObjects)
/* If the file owner implements this method, NSBundle calls it
* automatically, passing the GSMarkupBundleDidLoadGSMarkup
* notification as argument.
*/
- (void) bundleDidLoadGSMarkup: (NSNotification *)aNotification;
@end
@interface NSBundle (GSMarkupBundleAdditions)
+ (BOOL) loadGSMarkupData: (NSData *)data
withName: (NSString *)fileName
externalNameTable: (NSDictionary *)context
withZone: (NSZone *)zone
localizableStringsTable: (NSString *)table
inBundle: (NSBundle *)bundle
tagMapping: (NSDictionary *)mapping;
+ (BOOL) loadGSMarkupData: (NSData *)data
withName: (NSString *)fileName
externalNameTable: (NSDictionary *)context
withZone: (NSZone *)zone
localizableStringsTable: (NSString *)table
inBundle: (NSBundle *)bundle;
+ (BOOL) loadGSMarkupFile: (NSString *)fileName
externalNameTable: (NSDictionary *)context
withZone: (NSZone *)zone
localizableStringsTable: (NSString *)table
inBundle: (NSBundle *)localizableStringsTableBundle;
+ (BOOL) loadGSMarkupFile: (NSString *)fileName
externalNameTable: (NSDictionary *)context
withZone: (NSZone *)zone;
+ (BOOL) loadGSMarkupNamed: (NSString *)fileName
owner: (id)owner;
- (BOOL) loadGSMarkupFile: (NSString *)fileName
externalNameTable: (NSDictionary *)context
withZone: (NSZone *)zone
localizableStringsTable: (NSString *)table;
- (BOOL) loadGSMarkupFile: (NSString *)fileName
externalNameTable: (NSDictionary *)context
withZone: (NSZone *)zone;
/* Return the array of localizable strings in the GSMarkup file. Raise an
* exception if the file can't be parsed. */
+ (NSArray *) localizableStringsInGSMarkupFile: (NSString *)fileName;
/* fileName must include extension. */
- (NSString *) pathForLocalizedResource: (NSString *)fileName;
@end
#endif /* _GNUstep_H_GSMarkupBundleAdditions */
|