Make a splash screen in 2 minutes
Make a splash screen in 2 minutes
- Subject: Make a splash screen in 2 minutes
- From: Austin Sarner <email@hidden>
- Date: Mon, 23 Feb 2004 19:40:51 -0800
I was recently messing around with the idea of integrating some
applescript code into my project for basic tasks: like a splash screen.
Here is what I did:
Add the ApplScriptKit.framework to your project
Add an applescript build phase to the target
In your mainmenu.nib file make a new window with whatever you want in
you splash screen
In the applescript properties of the window name it 'load' or something
Now in the applescript properties for your app (files owner...) create a
new applescript after selecting the 'on launched' checkbox
Now in that script write something like:
on launched theObject
show window "load"
load nib "MainMenu"
load nib "MyDocument"
--load nib "other nibs!"
hide window "load"
end launched
Simple, sure, but it gets the job done. I know that this techinally
should not be part of the cocoa mailing list, but this was meant to make
cocoa programmer's lives easier by showing them cool things you can do
with applescript.
p.s. if anyone knows how to the titlebar of a window /in applescript/
please let me know.
Regards,
Austin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.