• 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
Swift bindings issue, Swift.Dictionary, NSMutableDictionary and NSObjectController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Swift bindings issue, Swift.Dictionary, NSMutableDictionary and NSObjectController


  • Subject: Swift bindings issue, Swift.Dictionary, NSMutableDictionary and NSObjectController
  • From: Samuel Williams <email@hidden>
  • Date: Sun, 14 Feb 2016 23:06:50 +1300

I have a .xib with a NSObjectController with it's content bound to a Swift
[String : AnyObject] variable, but get the following error:

*Cocoa Bindings: Error setting value for key path selection.startDate of
object <NSObjectController: 0x600000125780>[object class:
NSMutableDictionary] (from bound object <NSTextField: 0x6000001e3700>):
[<_TtGCSs29_NativeDictionaryStorageOwnerSSPSs9AnyObject__ 0x610000423da0>
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key startDate.*

1/ Is this reasonable?

2/ Should I prefer NSMutableDictionary in the Swift code?

Thanks.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Swift bindings issue, Swift.Dictionary, NSMutableDictionary and NSObjectController
      • From: Quincey Morris <email@hidden>
    • Re: Swift bindings issue, Swift.Dictionary, NSMutableDictionary and NSObjectController
      • From: Quincey Morris <email@hidden>
    • Re: Swift bindings issue, Swift.Dictionary, NSMutableDictionary and NSObjectController
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Secure coding NSArray
  • Next by Date: Re: Deleting an file that's been NSData memory mapped - safe?
  • Previous by thread: Re: Secure coding NSArray
  • Next by thread: Re: Swift bindings issue, Swift.Dictionary, NSMutableDictionary and NSObjectController
  • Index(es):
    • Date
    • Thread