Hi everyone:
I’m trying to add a custom status icon to my application. I have a two-second movie that I will use, and I’m going to insert play and stop commands into the beginning and end of my script. I’ve created the movie view and window in IB and put my movie into the Resources folder. I then attached a ‘will open’ handler to the window:
on will open theObject
if name of theObject is "main" then
set movie of movie view 1 of theObject to load movie "status"
set controller visible of movie view 1 of theObject to false
set loop mode of movie view 1 of theObject to looping playback
end if
end will open
When I open the application, I get an error “Can’t make current application into type «class movW». (-1700)” before any windows or menus appear. By inserting alerts into every other line, I’ve figured out that the error comes from the “set movie of movie view 1” line; that is, the alert directly before it displays and then the error comes up.
On another note, every time I save my IB project, my script gains an extra ‘on clicked’ handler that appears inside an on choose menu item handler and produces an error. I already have an on clicked handler in the script, so I have no idea what’s causing this.
Anybody know what’s going on?
…I’m using OS X v10.4.7 with XCode v2.0 and IB v2.5, if that helps.