Page 1 of 3
teaser - toolbars (yes, those ones)
Posted: Sun Apr 22, 2012 7:38 am
by shaosean
Well, my skills are good enough for me to tackle this and get over all the road blocks and headaches that come with coding in Rev and trying to make externals for it.. This is far from being feature complete and it is just a little bit of a teaser for people to play with and to see what they can do with it..
what do i do with it?!
click the "ssSetWindowToolbar" button
click the "ssToolbarSetVisible" button
now you have a very simple little toolbar
if you want it to be able to customizable, click the "ssToolbarSetConfigurableAttribute" button
if you want it to autosave the changes you have made, you will need to click on the "ssToolbarSetAutoSaveAttribute" button
before clicking the "ssToolbarSetVisible" button in the steps listed above..
look at the scripts of the buttons to see what to do (please note that some of the comments are out-dated, but you can see the actual code used and it should make sense)
look at the stack script to see how to handle the callbacks and to build your own custom toolbars (yes, those globals are needed and make it all work)..
what are missing
- icon support, just going to take a day or two to support all the possible methods (Rev imported images, images in the application bundle and built-in system icons)
- all of the toolbar and toolbar item events
- modifying toolbar items on a per window basis
- toolbar item attributes
where and how much!!
http://shaosean.tk/runrev/ssMacToolbar/
pricing has not been set, so free feel to throw out some numbers and lets see where it goes..
now what?
play with it, break it, send me feedback, ask me questions, order me pizzas..
Re: teaser - toolbars (yes, those ones)
Posted: Sun Apr 22, 2012 12:21 pm
by Mark
Hi,
This is cool. Is this going to be cross platform?
Kind regards,
Mark
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 9:21 am
by micmac
Hi shaosean
This project deserve many more positive responces than 1
It is real welcomed that you do this.
Thanks
Mic
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 11:11 am
by bn
Hi shaosean,
thank you for linking to your external. It is amazing. It gives a true native feeling to an app for MacOSX.
It worked well for what I tested.
Kind regards
Bernd
PS where do I send the pizzas
the forum would only let me upload the pizzas zipped. Then they acquire a distinct digital taste which is not palatable at all. Maybe we need a new section of the forum for pizza delivery...
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 11:32 am
by shaosean
Is this going to be cross platform?
Would be awesome wouldn't it.. Of course, it would have been awesome to have this built in to Rev..
It is real welcomed that you do this.
This is the project that got me started in externals.. That and lots of bellyaching to Malte (thanks for listening and telling me to "write it")
It gives a true native feeling to an app for MacOSX
Just because Windows users are used to ugly apps, doesn't mean us Mac users have to have ugly apps too
the forum would only let me upload the pizzas zipped
That is a space saving feature that allows you to send two pizzas in the space of one

Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 2:03 pm
by dunbarx
Shaosean
My copy cannot run. It appears that the external that comes with your download is not being recognized. I set the external reference of the stack to the bundle but still, no dice. Put it into the plugins folder, restarted LC. Any advice?
Craig
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 2:20 pm
by Klaus
Hi Craig,
did you update the "Externals.text" file?
...
SS_Mac_Toolbar,ssmactoolbar.bundle
...
Best
Klaus
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 2:24 pm
by FourthWorld
Sean -
Glad to see you back in the game, and with what looks like your best external yet! Well done.
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 3:10 pm
by dunbarx
Klaus,
Hmmm. I have two dozen of these, several for each of v3, v3.5, v4, v4.5
But none for v.5 or v5.5.
And how does one update a text file?
Thanks,
Craig
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 4:14 pm
by Klaus
Hi Craig,
where did you put the external?
It should go into the folder "Externals" in your "User Extensions" folder,
that you can define in the preferences "Files and memory".
Create this folder if not present.
In order to make LiveCode find and load all your "custom" externals you need
to put a simple text file into that folder "Externals" named "externals.txt"!
Content:
...
Seans_cool_toolbar_stuff,sstoolbarmac.bundle
...
This is the content of my "externals.txt" file:
EnhancedQTExternal,EnhancedQTExternal.bundle
ssmactoolbar,ssmactoolbar.bundle
Best
Klaus
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 5:27 pm
by mwieder
As usual, when Sean gets near a computer something awesome happens.
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 10:00 pm
by shaosean
dunbarx wrote:My copy cannot run. It appears that the external that comes with your download is not being recognized. I set the external reference of the stack to the bundle but still, no dice. Put it into the plugins folder, restarted LC. Any advice?
Are you trying to run the sample stack? If so, just leave the external and the stack in the same folder and it will find it.. If you are trying to install it to use in your own application you will need to properly install it in the Externals folder in your user extensions folder (preference setting in Rev/LC).. The external needs to be placed in a few locations and a text file needs to be created/updated for the standalone builder to recognize it (don't worry, when the external is ready for prime-time everything will be automatically installed)..
Copy the external to all these folders
<user extensions>/Externals/
<user extensions>/Runtime/Mac OS X/PowerPC-32/Externals/
<user extensions>/Runtime/Mac OS X/Universal/Externals/
<user extensions>/Runtime/Mac OS X/x86-32/Externals/
now, in each of those folders there should be a text file called "Externals.txt" (if not, just create it) and add the following line to it:
the format of the line is as follows:
item 1 is the name that will be displayed in the standalone builder
item 2 is the actual file name of the external
if you are still having issues, contact me directly and i will see about helping you out
ps.. based on the settings in Xcode, this may be Intel only and for 10.5 or greater, will need to test before the final release so we can get some requirements listed..
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 10:02 pm
by shaosean
mwieder wrote:As usual, when Sean gets near a computer something awesome happens.
i wish the judge would see it that way too

Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 10:08 pm
by mwieder
LOL.
Re: teaser - toolbars (yes, those ones)
Posted: Tue Apr 24, 2012 10:14 pm
by JosepM