/Volumes/Plantain/MyDocuments/Projects/MacTrek/MacTrek/Luky/Comm/LLNotificationCenterEntry.m

00001 //
00002 //  LLNotificationCenterEntry.m
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 27/04/2006.
00006 //  Copyright 2006 __MyCompanyName__. All rights reserved.
00007 //
00008 
00009 #import "LLNotificationCenterEntry.h"
00010 
00011 
00012 @implementation LLNotificationCenterEntry
00013 
00014 //- (id) initWithNotificationName:(NSString*) notification source:(id) src target:(id) targ selector:(SEL)sel { 
00015 //    return [self initWithNotificationName:notification source:src target:targ selector:sel useLocks:NO];
00016 //}
00017 
00018 - (id) initWithNotificationName:(NSString*) notification source:(id) src target:(id) targ 
00019                        selector:(SEL)sel useLocks:(bool)protect useMainLoop:(bool)useMainLoop{
00020         
00021     self = [super init];
00022     if (self != nil) {
00023         name = notification;
00024         source = src; 
00025         target = targ;
00026         selector = sel;
00027         useLocks = protect;
00028         mainLoop = useMainLoop;
00029     }
00030     return self; 
00031 } 
00032 
00033 - (id) init {
00034     self = [super init];
00035     if (self != nil) {
00036         name = nil;
00037         source = nil;
00038         target = nil;
00039         selector = nil;
00040         mainLoop = NO;
00041         useLocks = NO;
00042         userData = nil;
00043     }
00044     return self;
00045 }
00046 
00047 - (NSString *)name {
00048     return name;
00049 }
00050 
00051 - (SEL) selector {
00052     return selector;
00053 }
00054 
00055 - (id) target {
00056     return target;
00057 }
00058 
00059 - (id) source {
00060     return source;
00061 }
00062 
00063 - (bool) useLocks {
00064     return useLocks;
00065 }
00066 
00067 - (bool) useMainLoop {
00068     return mainLoop;
00069 }
00070 
00071 - (void) setUserData:(id)data {
00072     userData = data;
00073 }
00074 
00075 - (id) userData {
00076     return userData;
00077 }
00078 
00079 @end

Generated on Fri Jul 28 19:15:22 2006 for MacTrek by  doxygen 1.4.7