• 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: Noddy array controller / bindings question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Noddy array controller / bindings question


  • Subject: Re: Noddy array controller / bindings question
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 28 Jul 2004 09:53:32 -0700

On Jul 28, 2004, at 5:21 AM, Ken Tabb wrote:


[I am unsure] ... whether an NSArrayController subclass *has* to implement:
-countOf<Key>
-objectIn<Key>AtIndex:
-insertObject:in<Key>AtIndex: (if it's mutable)
-removeObjectFrom<Key>AtIndex: (if it's mutable)
... or if this is only for array controllers whose objects aren't really arrays but need to be able to be treated as arrays (as the docs state you can do if you need to) for the purposes of KVC?

The NSArrayController/subclass doesn't implement these methods, the array container (such as your document class) does. See various examples at:
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>

mmalc
_______________________________________________
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.


  • Follow-Ups:
    • Re: Noddy array controller / bindings question
      • From: mmalcolm crawford <email@hidden>
References: 
 >Noddy array controller / bindings question (From: Ken Tabb <email@hidden>)

  • Prev by Date: Right arrow keypress == enter keypress in NSTableView subclass?
  • Next by Date: Re: Bound UI elements not showing 'description' as expected
  • Previous by thread: Noddy array controller / bindings question
  • Next by thread: Re: Noddy array controller / bindings question
  • Index(es):
    • Date
    • Thread