• 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
'Touching' managed objects properties.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'Touching' managed objects properties.


  • Subject: 'Touching' managed objects properties.
  • From: Óscar Morales Vivó <email@hidden>
  • Date: Wed, 13 Jul 2005 22:17:49 -0400

I have a model with a Person entity that has the following attributes:

- isMale (Boolean)
- children (to-many relationship to Person)
- parents (to-many relationship to Person, inverse of children).
- father (fetched property. Retrieves the male parent).
- mother (fetched property. Retrieves the female parent).

The code already takes care of guaranteeing there's only a maximum of a male and a female parent at the same time.

If I modify isMale, I want the children (if any) to notify that the value of their father and mother properties have changed. However I haven't seen any way to manually 'touch' those properties. For the ones inside a single object I called setKeys:triggerChangeNotificationForDependentKey (which works fine).

Right now I have it set with a call to [self setKeys:[NSArray arrayWithObject:@"isMale"] triggerChangeNotificationForDependentKey:@"children"] and it works fine as far as updating the UI is concerned. But I'd like to have a more finely granular solution.

Any help or advice?

Thanks in advance for your help:

Óscar Morales Vivó. _______________________________________________
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


  • Follow-Ups:
    • Re: 'Touching' managed objects properties.
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: NSNotificationCenter possible memory leak? [for memory geek]
  • Next by Date: Re: Core Data/Cocoa Bindings: best practice for using strings in code?
  • Previous by thread: Re: NSXMLDocument: apply XSLT with arguments
  • Next by thread: Re: 'Touching' managed objects properties.
  • Index(es):
    • Date
    • Thread