Annotation of Examples/EnterpriseObjects/DistributedEO/DEOClient.subproj/DEONotification.m, revision 1.1

1.1     ! root        1: /*
        !             2:    DEONotification.m created by enoyau on Fri 13-Jan-1995
        !             3: 
        !             4:    You may freely copy, distribute, and reuse the code in this example.
        !             5:    NeXT disclaims any warranty of any kind, expressed or implied, as to its
        !             6:    fitness for any particular use.
        !             7: */
        !             8: 
        !             9: #import "DEONotification.h"
        !            10: 
        !            11: @implementation DEONotification
        !            12: 
        !            13: - initWithName:(NSString *)notificationName
        !            14:         object:notificationObject
        !            15:       userInfo:(NSDictionary *)notificationUserInfo
        !            16:        isLocal:(BOOL)yn
        !            17: {
        !            18:     name = [notificationName copy];
        !            19:     object = [notificationObject retain];
        !            20:     userInfo = [notificationUserInfo copy];
        !            21:     isLocal = yn;
        !            22:     return self;
        !            23: }
        !            24: 
        !            25: + (DEONotification *)notificationWithName:(NSString *)notificationName
        !            26:                                    object:notificationObject
        !            27:                                  userInfo:(NSDictionary *)notificationUserInfo
        !            28:                                   isLocal:(BOOL)yn
        !            29: {
        !            30:     return [[self alloc] initWithName:notificationName
        !            31:                                object:notificationObject
        !            32:                              userInfo:notificationUserInfo
        !            33:                               isLocal:yn];
        !            34: }
        !            35: 
        !            36: - (void)dealloc {
        !            37:     [name release];
        !            38:     [object release];
        !            39:     [userInfo release];
        !            40:     [super dealloc];
        !            41: }
        !            42: 
        !            43: - (NSString *)notificationName { return name; }
        !            44: - notificationObject           { return object;}
        !            45: - (NSDictionary *)userInfo     { return userInfo; }
        !            46: - (BOOL)isLocal                { return isLocal; }
        !            47: 
        !            48: @end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.