2002-02-02 11:48:54 +00:00
# import <Foundation / Foundation.h>
/* This protocol allows your plug to interrogate a resource to find out information about it. */
@ protocol ResKnifeResourceProtocol
2002-02-14 23:24:53 +00:00
- ( BOOL ) isDirty ;
2002-02-02 11:48:54 +00:00
- ( NSString * ) name ;
- ( void ) setName : ( NSString * ) newName ;
- ( NSString * ) type ;
- ( void ) setType : ( NSString * ) newType ;
- ( NSNumber * ) resID ;
- ( void ) setResID : ( NSNumber * ) newResID ;
- ( NSNumber * ) attributes ;
- ( void ) setAttributes : ( NSNumber * ) newAttributes ;
2002-02-14 23:24:53 +00:00
- ( NSNumber * ) size ;
2002-02-02 11:48:54 +00:00
- ( NSData * ) data ;
- ( void ) setData : ( NSData * ) newData ;
2002-02-06 20:57:56 +00:00
@ end
// Resource notifications
2002-02-14 23:24:53 +00:00
// Note: when using internal notifications in your own plug-in, DO NOT use [NSNotificationCenter defaultCenter]. This is an application-wide notificaton center, use of it by plug-ins for their own means (i.e. not interacting with ResKnife) can cause conflicts with other plug-ins. You should create your own notification center and post to that.
extern NSString * ResourceWillChangeNotification ;
extern NSString * ResourceNameWillChangeNotification ;
extern NSString * ResourceTypeWillChangeNotification ;
extern NSString * ResourceIDWillChangeNotification ;
extern NSString * ResourceAttributesWillChangeNotification ;
extern NSString * ResourceDataWillChangeNotification ;
extern NSString * ResourceNameDidChangeNotification ;
extern NSString * ResourceTypeDidChangeNotification ;
extern NSString * ResourceIDDidChangeNotification ;
extern NSString * ResourceAttributesDidChangeNotification ;
extern NSString * ResourceDataDidChangeNotification ;
extern NSString * ResourceDidChangeNotification ;