objective c - cocoa could not connect action -
I'm negligible with Objective-C + coco and writing a simple Cocoa app. Then I had to face a runtime error which has no effect on my program execution:
Action text could not connect field: to target class bar controller < / Blockquote>
I'm Menenu. Using some windows outside the XI and loading them with separate controllers and xib files.
Within a new xib in a window, I have created a text field and linked it into a new NSW Dundo controller sub-section with an IBotlate Entexfield (textfield). It works and I'm able to use textField to update the contents of the text field.
I'm curious why I am getting a runtime error from top and I hope the magic around some UI creation process in understanding it
plain
IBOutlets Really - something through the first Respondor and Response Chain And funny starts when using the binding or action sent to the unknown target: -)
About your error:
Looks like you've connected one of the targets Outlets for which are not present in your target category?Maybe you have established a connection to the property in the
file owner (or some other proxy object) at some point where the owner's class eg < Code> MyAppDelegate .
You have moved the window (or other object outlet) to another .xib and now the owner's class isMyWindowController which is not the property of the same name that you have your own outlet Connected - and Vola will not be able to establish a connection to your outlet on runtime runtime.
Just double check your outlet interface editor, maybe there are already some types of warning messages that are displayed in front of the outlet that seem to be messy.
Delete or reassign them and you have done them.
Comments
Post a Comment