Re: Help debugging bindings issues
Re: Help debugging bindings issues
- Subject: Re: Help debugging bindings issues
- From: Alexander Spohr <email@hidden>
- Date: Mon, 11 May 2009 17:36:31 +0200
The docs for NSArray say:
Special Considerations
NSArray objects are not observable, so this method raises an exception
when invoked on an NSArray object. Instead of observing an array,
observe the to-many relationship for which the array is the collection
of related objects.
It looks like your bindings are wrong (bound to an NSArray) somewhere.
Go to IB and recheck your bindings.
atze
Am 11.05.2009 um 16:43 schrieb Alex Smith:
Here is the full error listing.
2009-05-11 08:22:55.043 RaiseMan[2935:10b] [<NSCFArray 0x158f90>
addObserver:forKeyPath:options:context:] is not supported. Key path:
personName
2009-05-11 08:22:55.062 RaiseMan[2935:10b] [<NSCFArray 0x16efb0>
addObserver:forKeyPath:options:context:] is not supported. Key path:
personName
2009-05-11 08:22:55.067 RaiseMan[2935:10b] [<NSCFArray 0x158f90>
addObserver:forKeyPath:options:context:] is not supported. Key path:
expectedRaise
2009-05-11 08:23:02.160 RaiseMan[2935:10b] [<NSCFArray 0x16efb0>
addObserver:forKeyPath:options:context:] is not supported. Key path:
expectedRaise
I am not using an IBOutlet or IBAction for two reasons. 1) The
author did not use them is his example (nor are they in his project
code) and 2) I am binding personName and expectedRaise to the table
columns. So Table Column binding is set to bind to Array Controler,
Controller Key = Arranged Objects, model key path = personName.
(same for expectedRaise).
Thanks,
Alex
On May 11, 2009, at 2:19 AM, Alexander Spohr wrote:
Am 08.05.2009 um 18:44 schrieb Alex Smith:
[ addObserver:forKeyPath:options:context:] is not supported. Key
path: personName
Please post the complete line. This looks like something is missing.
Are you sure you entered the right path in IB?
atze
_______________________________________________
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