Hey, lunixninja here
Pretty much the story is that when I make a new Cocoa application in Xcode and open the mainmenu.nib file and say make a new button and in inspector palette I chose applescript, It never works and screws up. Can someone give me help me or redirect me please
Please note I want to be making a Cocoa based application not a Applescript Cocoa based applescript applications
Thanks
LN
Hi lunixninja,
for using AppleScript and AppleScript Names/Handlers it’s necessary to use an AppleScript Application type Project, not a Cocoa Application. There are some differences between these two types which make AppleScript stuff in IB not working in an Cocoa project (no AppleScriptKit.framework linked, no Compile AppleScripts build phase in the target …). On the other hand an AppleScript Application project has (almost) no limitations in implementing Objective-C and Cocoa methods & classes.
So could you please give us some more information what’s your problem exactly?
Regards,
Dominik