InterfaceBuilder: NSButton Has No "target" Outlet

Posted:
in Genius Bar edited January 2014
I've been interested in learning Cocoa for some time, so I decided to download Apple's "Developing Cocoa Objective-C Applications: A Tutorial".



I believe I have followed all the steps correctly in creating the CurrencyConverter window in InterfaceBuilder. For whatever reason, though, my "Convert" button doesn't have a "target" outlet (only formatter, menu, and nextKeyView), so I can't connect it to my ConverterController instance.



Have I missed a step or something obvious, or is there something wrong with my installation of the developer tools?

Comments

  • Reply 1 of 1
    I believe Uncle Skeleton at MacNN resolved this for me.



    Just in case anyone else is thinking of using Apple's tutorial, the instructions for connecting the "Convert" button to the "ConverterController" instance currently pertain to a pre-Xcode version of InterfaceBuilder.



    Instead of connecting the now non-existent "target" outlet to "convert:", simply select the Target/Action tab, choose "convert:" and click Connect.
Sign In or Register to comment.