• 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: NSTreeController, minus set mutation, array exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController, minus set mutation, array exception


  • Subject: Re: NSTreeController, minus set mutation, array exception
  • From: mmalc Crawford <email@hidden>
  • Date: Mon, 18 Jun 2007 13:27:13 -0700


On Jun 18, 2007, at 1:02 PM, Ken Victor wrote:

i've got an outline view bound via a tree controller. the tree controller has its content set bound to a mutable set in my model.

if i attempt to delete several items via the following, everything works as expected:

	NSEnumerator* en = [itemsToDelete objectEnumerator];
	while (id anItem = [en nextObject]) {
		NSSet* delSet = [NSSet setWithObject: anItem];
		[myController willChangeValueForKey: @"proxySet"
			withSetMutation: NSKeyValueMinusSetMutation
			usingObjects: delSet];

Why are you invoking the KVO change notification methods on the controller's behalf?


And is there any reason why you are not just modifying your model directly rather than asking the tree controller to do it?

mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTreeController, minus set mutation, array exception
      • From: Ken Victor <email@hidden>
References: 
 >NSTreeController, minus set mutation, array exception (From: Ken Victor <email@hidden>)

  • Prev by Date: Re: text to bezier path
  • Next by Date: re:Core Data File Sharing via an AFP Alias
  • Previous by thread: NSTreeController, minus set mutation, array exception
  • Next by thread: Re: NSTreeController, minus set mutation, array exception
  • Index(es):
    • Date
    • Thread