• 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: binding and too many relationship insertion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding and too many relationship insertion


  • Subject: Re: binding and too many relationship insertion
  • From: Olivier Destrebecq <email@hidden>
  • Date: Thu, 1 Jul 2004 18:01:09 -0400

I think some people might be interested in what i found

To get this the insertion method to be called you must implement insertObject:in<Key>AtIndex: and removeObjectFrom<Key>AtIndex:
But mutableArrayValueForKey: should not be implemented, else it will insert in the array directly and not called you methods.

Olivier Destrebecq
http://www-personal.si.umich.edu/~olivier/portfolio/Resume.html

On Jul 1, 2004, at 11:06 AM, Olivier Destrebecq wrote:

when i send the add: message to an array controller in my app everything works fine except that it use the set<Key>: method in my method instead of the insertIn<Key>: method.

Is that supposed to be, is there a way to get it to use that insert method. Does that mean that any code that need to be run when inserting an object in the array needs to be in the controller and not the model?

thanks for answers on any of those questions.

Olivier Destrebecq
http://www-personal.si.umich.edu/~olivier/portfolio/Resume.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >binding and too many relationship insertion (From: Olivier Destrebecq <email@hidden>)

  • Prev by Date: Re: Forwarding to Super
  • Next by Date: Avoiding temp file
  • Previous by thread: Re: binding and too many relationship insertion
  • Next by thread: Context Menu disables clicks in NSQuickDrawView (repost)
  • Index(es):
    • Date
    • Thread