• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSNotification / Core Data roadblock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSNotification / Core Data roadblock (From: "Paul L. Gribble" <email@hidden>)

  • Prev by Date: RE: Bundle Reloading
  • Next by Date: Re: Best way to ensure prevent multiplying helper tasks
  • Previous by thread: NSNotification / Core Data roadblock
  • Next by thread: Re: NSNotification / Core Data roadblock [solved]
  • Index(es):
    • Date
    • Thread