• 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
Array Controllers and Insertion notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Array Controllers and Insertion notifications


  • Subject: Array Controllers and Insertion notifications
  • From: Edwin Vane <email@hidden>
  • Date: Tue, 13 Sep 2005 15:07:38 -0400
  • Mail-followup-to: Cocoa-Dev <email@hidden>

Hi,

I'm hoping to draw on the experience here. Was there (and perhaps there
still is) an issue with NSArrayController that it would never provide
NSKeyValueChangeInsertion as the change type inside
observeValueForKeyPath:... when values were actually inserted into the
array that the array controller is bound to?

I find that the array controller will only tell me the array was changed
(ie, via NSKeyValueChangeSetting) when new values are inserted. I notice
a similar problem that mmalc worked around in his Graphics Bindings
example.

Incidentally, when not using an array controller (ie, observing the
model array directly without using NSArrayController), I do get
insertion,removal, and replacement notifications instead of the
generic change notification.

Since I'm stuck in pre-Tiger for now (where this problem may not exist)
is there a fix or must I learn to live with it.

--

Edwin Vane
   MMath Candidate
   Computer Graphics Lab
   School of Computer Science
   University of Waterloo

 _______________________________________________
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: Array Controllers and Insertion notifications
      • From: Scott Anguish <email@hidden>
  • Prev by Date: menu enabling with miniturized windows?
  • Next by Date: [OT] List speed
  • Previous by thread: menu enabling with miniturized windows?
  • Next by thread: Re: Array Controllers and Insertion notifications
  • Index(es):
    • Date
    • Thread