objective c - Hooking up events to NSWindowController in single window application -


i've been working iphone/ipad while using xcode , have no trouble hooking required connections uiviewcontroller in interface builder make things work, seems more difficult when attempting simple app osx.

i've created new cocoa application in xcode (non-document based) main nib file window. have created new nswindowcontroller subclass called testwindowcontroller. in ib, change file's owner new testwindowcontroller. i've added ibaction's controller subclass , hooked them in ib.

all appears fine , compiles when @ debug log see:

could not connect action sayhelloclicked: target of class testwindowcontroller.

i've been going round in circles hours trying various methods , can't actions hooked up. going wrong?

i should mention tried ditching view controller , adding actions main nsapplicationdelegate class same results.

thanks, j


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -