Hey,
I am trying to make a preference pane (for the system preferences) that is powered by Applescript.
Here is what I did and what went wrong…
- Opened Xcode, clicked "New PreferencePane "
- The project opened and was created successfully, i did a quick build, opened it in SystemPrefs and it worked.
- I added some normal objects (a text box a button and an input), built it and it worked in SystemPrefs (everything displayed correctly)
- I then wanted to add some functionality (rather than buttons doing nuthin) so i made a new as file (file/new file…) the back in IB I clicked the button the in inspector I clicked the AS tab and then selected the “OnClicked” thing then ticked the “My New As File”.
- In my as file I added a simple display dialog “It worked!” in the OnClicked handler, built it, tested it and when I clicked it in System Pref it froze, forced quit it the tried again, it worked but only a blank page was displayd.
Please help!! Thanks in advance