[baseten-users] Notification Center Behaviour

Michael Ruepp michael at ruepp.at
Wed Sep 16 01:27:35 EEST 2009


Hi there,

I try to use the NS Center for tracking specific Context changes. In  
the init of my Class I try to use this:

		NSNotificationCenter* ctx_ns_center = [context_ notificationCenter];
		NSLog(@"Ctx ns center: %@",(NSString*)ctx_ns_center);
		[ctx_ns_center addObserver:self
					  selector:@selector(contextChanged:)
						  name:kBXInsertNotification object:nil];
		[ctx_ns_center addObserver:self
						  selector:@selector(contextChanged:)
							  name:kBXUpdateNotification object:nil];
		[ctx_ns_center addObserver:self
						  selector:@selector(contextChanged:)
							  name:kBXDeleteNotification object:nil];



I do get a compile error (I included "BaseTen/BXConstants.h")

error: syntax error at 'OTHER' token
error: syntax error at 'OTHER' token
error: syntax error at 'OTHER' token
error: 'kBXInsertNoti' undeclared (first use in this function)
error: syntax error before 'object'

When I try to declare Strings @"kBXInsertNotification" I do not get  
any notifications. When I use nil, I get all notifications.

Maybe somebody can point me into the right direction.

Thanks,

Mike


_________________
michael ruepp
michael at ruepp.at
fon +41 76 593 04 49
skype michaelruepp

CONFIDENTIALITY NOTICE
This message (including any attachments transmitted with it) contains  
confidential information and is intended only for the individual named  
herein. If you are not the herein named addressee you should not  
disseminate, distribute, copy or otherwise make use of this message.  
Please notify the sender immediately by e-mail if you have received  
this message by mistake, and delete it from your systems.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basetenframework.org/pipermail/baseten-users/attachments/20090916/aa27b52a/attachment.htm>


More information about the baseten-users mailing list