applescript appDelegate

Can you rename the appDelegate variable for the handler or does the program need appDelegate?

Thanks

Model: MacBook Pro
AppleScript: 2.2.3
Browser: Safari 536.26.17
Operating System: Mac OS X (10.8)

There’s no appDelegate “handler”; it’s a class. You can change the class name, but you then have to change the class of the cube representing it in the .xib.

Is there some reason you feel the urge to do this?

Hi Shane,

I’ve been out with the flu, sorry for taking so long.

I was just wondering, because in many examples they change the appDelegate to other things. might have been looking at old Applescript Studio projects. Also, the other classes seem to have different names and I was trying to look for a list of them (e.g. “on clicked”). In Applescript Studio, they used to have a list of all handlers for certain objects (i.e. buttons, windows, etc.). Still getting to know this new Xcode. I don’t remember there being an appDelegate script object.

Thanks,

Model: MBP
AppleScript: 2.2.3
Browser: Safari 536.26.17
Operating System: Mac OS X (10.8)

There is no single list. The app delegate handlers are the methods of NSApplicationDelegate, and the action handlers/methods are based on the relevant controls (generally NSControl).

Hi Shane,

I think I’m starting to get some of it now. Reading this page now:

https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSApplicationDelegate_Protocol/Reference/Reference.html

when I searched for applicationShouldTerminateAfterLastWindowClosed from one of your scripts.

Thanks a lot,