• 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
NSTokenField not updating collection of Entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTokenField not updating collection of Entity


  • Subject: NSTokenField not updating collection of Entity
  • From: Johan <email@hidden>
  • Date: Wed, 14 Feb 2007 00:33:50 +0100

Hi,

Like many others I seem to have some problems getting the NSTokenField working properly.
After playing around for quite a bit with different binding- configuration I now have a setup that seems to be working but still is not.


I have NSTokenField with its "value"-binding bound to the "arrangedObjects" or an ArrayController which has its contentSet- binding bound to a collection of an entity (through an ObjectController). Everything loads fine, the objects in the collection are shown as tokens. But if I add or remove a token this is not updated to the entity.

When debugging I see that the ArrayControllers arrangedObjects-array has the correct number of objects after adding or removing tokens. But for some reason those change never reach the entity.

Just for the sake of trying I manually called addObject on the ArrayController and this properly added an object to the collection.

I would really appreciate any kind of hints to what I'm doing wrong here!

Cheers
 Johan
_______________________________________________

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


  • Prev by Date: CANCELED -- MEETING: Chicago CocoaHeads / CAWUG Tuesday Feb. 13 6:00 pm
  • Next by Date: Re: How to get the stroke geometry of a NSBezierPath?
  • Previous by thread: Webview and printing with templates
  • Next by thread: Printing Crash: Intel only
  • Index(es):
    • Date
    • Thread