DIfference between Property and Global

Often times I’m setting up:

Property x : missing value

and using this with UI elements in IB.

But, if the item doesn’t need a connection in IB then is it better to set it up as a global variable that gets called during different methods of my code?

Which is cleaner code?
what exactly are the differences between the two?

thanks
-Alex

You don’t need any of that. In AppleScript Objective-C, variables are automatically global.

I’m not sure that either is “better” – properties have the convenience of an initial value, but that’s about the only difference between them. Property persistence doesn’t happen in ASObjC.

But you need to use properties for outlets, and also for bindings, so just using properties means less potential for having to change them when you modify scripts, and less confusion.