Swift bindings issue, Swift.Dictionary, NSMutableDictionary and NSObjectController
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