Troubleshooting warning message from CIB loading

17 views
Skip to first unread message

bartels76

unread,
Apr 26, 2017, 2:39:04 PM4/26/17
to Cappuccino & Objective-J
I am receiving the following warning message in the console when my project loads.  

<$KVO_CPPopUpButton 0x02c484> : cannot bind selectedValue because another binding with the same functionality is already in use.

I believe I understand what the problem is based on the message provided.  I am thinking the CPPopUpButton may be bound to selectedObject or something and the CIB is also trying to bind to selectedValue which is not allowed.  My project is rather large and I am trying to narrow down what CIB is throwing the error, so I can rectify the issue and not get the warning.

What is the best way to find out which CIB loading is causing the warning?

Thanks,
Jeremy

Martin Carlberg

unread,
Apr 26, 2017, 3:02:29 PM4/26/17
to objec...@googlegroups.com
Hi!

I guess this error message is made from CPKeyValueBinding.j Set a break point in the browser on the line that prints it. Then you should be able to check around the views and maybe get some clues to where it is located.


Happy coding,

- Martin


--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectivej+...@googlegroups.com.
To post to this group, send email to objec...@googlegroups.com.
Visit this group at https://groups.google.com/group/objectivej.
For more options, visit https://groups.google.com/d/optout.

bartels76

unread,
Apr 26, 2017, 5:54:26 PM4/26/17
to Cappuccino & Objective-J
Thanks Martin!

That helped point me in the right direction.  Once I found the keypath I was able to find the XIB, and it turned out that I had accidentally applied bindings to both the NSPopUpButton and the NSPopUpButtonCell.  I removed it from the NSPopUpButtonCell and the warning is now gone.

Thanks,
Jeremy
Reply all
Reply to author
Forward
0 new messages