• 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: Allan Odgaard <email@hidden>
  • Date: Thu, 1 Jul 2004 19:03:29 +0200

On 1. Jul 2004, at 17:06, 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.

It uses a proxy object obtained using mutableArrayValueForKey which: "Searches the class of the receiver for a pair of methods whose names match the patterns insertObject:in<Key>AtIndex: and removeObjectFrom<Key>AtIndex:" (and fallbacks on the set<Key>: if these are not found).

So you must implement both methods, and you must name them correctly.

More info: http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Protocols/NSKeyValueCoding.html#//apple_ref/doc/uid/ 20000471/BABJFEAE
_______________________________________________
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: Mixing Objective-C and C++ in Xcode
  • Next by Date: Rotating text fields
  • Previous by thread: binding and too many relationship insertion
  • Next by thread: Re: binding and too many relationship insertion
  • Index(es):
    • Date
    • Thread