Re: NSNotification / Core Data roadblock
Re: NSNotification / Core Data roadblock
- Subject: Re: NSNotification / Core Data roadblock
- From: mmalcolm crawford <email@hidden>
- Date: Fri, 16 Dec 2005 14:54:05 -0800
On Dec 16, 2005, at 2:37 PM, Paul L. Gribble wrote:
and in the +initialize method of the Trip class I have:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(transactionAmountChanged:)
name:@"amountChanged" object:nil];
You're adding the class object as an observer, not an instance. The
class does not implement
- (void)transactionAmountChanged:(NSNotification *)notification
You should also probably not observe notifications from *all*
Transaction instances, only those to which a given Trip instance has
a relationship.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden