teaser - toolbars (yes, those ones)

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

teaser - toolbars (yes, those ones)

Post by shaosean » Sun Apr 22, 2012 7:38 am

Screen shot 2012-04-22 at 2.23.59 AM.png
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..
Last edited by shaosean on Tue Apr 24, 2012 10:08 am, edited 1 time in total.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: teaser - toolbars (yes, those ones)

Post by Mark » Sun Apr 22, 2012 12:21 pm

Hi,

This is cool. Is this going to be cross platform?

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

micmac
Posts: 49
Joined: Mon May 30, 2011 9:00 am

Re: teaser - toolbars (yes, those ones)

Post by micmac » Tue Apr 24, 2012 9:21 am

Hi shaosean

This project deserve many more positive responces than 1

It is real welcomed that you do this.


Thanks
Mic

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: teaser - toolbars (yes, those ones)

Post by bn » Tue Apr 24, 2012 11:11 am

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...

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Tue Apr 24, 2012 11:32 am

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 :-D

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10335
Joined: Wed May 06, 2009 2:28 pm

Re: teaser - toolbars (yes, those ones)

Post by dunbarx » Tue Apr 24, 2012 2:03 pm

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

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: teaser - toolbars (yes, those ones)

Post by Klaus » Tue Apr 24, 2012 2:20 pm

Hi Craig,

did you update the "Externals.text" file?
...
SS_Mac_Toolbar,ssmactoolbar.bundle
...


Best

Klaus

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: teaser - toolbars (yes, those ones)

Post by FourthWorld » Tue Apr 24, 2012 2:24 pm

Sean -

Glad to see you back in the game, and with what looks like your best external yet! Well done.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10335
Joined: Wed May 06, 2009 2:28 pm

Re: teaser - toolbars (yes, those ones)

Post by dunbarx » Tue Apr 24, 2012 3:10 pm

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

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: teaser - toolbars (yes, those ones)

Post by Klaus » Tue Apr 24, 2012 4:14 pm

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

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: teaser - toolbars (yes, those ones)

Post by mwieder » Tue Apr 24, 2012 5:27 pm

As usual, when Sean gets near a computer something awesome happens.

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Tue Apr 24, 2012 10:00 pm

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:

Code: Select all

ssMacToolbar,sstmacoolbar.bundle
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..

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: teaser - toolbars (yes, those ones)

Post by shaosean » Tue Apr 24, 2012 10:02 pm

mwieder wrote:As usual, when Sean gets near a computer something awesome happens.
i wish the judge would see it that way too :P

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: teaser - toolbars (yes, those ones)

Post by mwieder » Tue Apr 24, 2012 10:08 pm

LOL.

JosepM
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 344
Joined: Tue Jul 20, 2010 12:40 pm

Re: teaser - toolbars (yes, those ones)

Post by JosepM » Tue Apr 24, 2012 10:14 pm

:D

Post Reply