Page 2 of 2

Re: Mac OS X Externals

Posted: Fri Jul 26, 2013 9:40 am
by shaosean
Dave, I did a quick write up in regards to using the newer Xcode to create Mac OS X externals and I will add more to it when I have time..
http://forums.runrev.com/viewtopic.php?f=17&t=16127

Re: Mac OS X Externals

Posted: Fri Jul 26, 2013 9:55 am
by Mag

Re: Mac OS X Externals

Posted: Fri Jul 26, 2013 9:58 am
by Mag
dave_probertGA6e24 wrote:Mag: Once installed (follow the instructions from other post) then just put 'ShowAnimationEffect' in an on mouseUp handle on a button. Then click the button. :)
Thank you, unfortunately when I use this command to see the external, it's not listed: put the externalPackages of stack "home"

Maybe I'm wrong the text of the file Externals.txt:

Code: Select all

ShowAnimationEffect,ShowAnimationEffect.bundle

Re: Mac OS X Externals

Posted: Fri Jul 26, 2013 11:16 am
by shaosean
It might not show up in that command, but just try using the command in the external and it should work (if installed correctly)..

Re: Mac OS X Externals

Posted: Fri Jul 26, 2013 11:26 am
by Mag
shaosean wrote:It might not show up in that command, but just try using the command in the external and it should work (if installed correctly)..
Thank you shaosean (I restarted LC and all works nice now)

ssUserSessionEvents

Posted: Sun Jul 28, 2013 6:37 am
by shaosean
Description
Allows your app to receive events when the user session is suspended and resumed.. This will allow you to pause audio/video, as well as updating user status for online clients..

Syntax

Code: Select all

EnableUserSessionEvents  -- start listening for the events
DisableUserSessionEvents  -- stop listening for the events (best to do this when your app quits)
UserSessionEventsAreEnabled()  -- returns true if your app is listening for the events, false otherwise
Events

Code: Select all

SuspendUserSession  -- user session has been switched to the login screen or another user
ResumeUserSession  -- returned back to this user session

ssScreenSaverEvents

Posted: Sun Jul 28, 2013 8:17 am
by shaosean
Description
New events to know when the screen saver started and stopped..

Syntax

Code: Select all

EnableScreenSaverEvents  -- start listening for the screen saver events
DisableScreenSaverEvents  -- stop listening for the screen saver events
ScreenSaverEventsAreEnabled()  -- returns true if your app is listening for the events, false otherwise
Events

Code: Select all

ScreenSaverStarted  -- screen saver has started
ScreenSaverStopping  - screen saver is stopping
ScreenSaverStopped  -- screen saver has stopped

ssFadeDisplay

Posted: Sun Jul 28, 2013 10:06 am
by shaosean
Description
Fade in/out the displays.. Optional duration and colour settings..

Syntax

Code: Select all

FadeOut  -- 1 second duration, fade to black
FadeOutForDuration <duration>  -- variable duration, fade to black
FadeOutToColour <red>, <green>, <blue>  -- 1 second duration, variable colour (red, green and blue are values 0 to 255)
FadeOutToColourForDuration <red>, <green>, <blue>, <duration>  -- variable duration and colour (red, green and blue are values 0 to 255)
FadeOutClear  -- will bring the displays out of the fade instantly

FadeIn  -- 1 second duration, fade in from black
FadeInForDuration <duration>  -- variable duration, fade from black
FadeInFromColour <red>, <green>, <blue>  -- 1 seconds duration, variable colour (red, green and blue are values 0 to 255)
FadeInFromColourForDuration <red>, <green>, <blue>, <duration>  -- variable duration and colour (red, green and blue are values 0 to 255)
Events

Code: Select all

FadeOutCompleted
FadeInCompleted

Re: Mac OS X Externals

Posted: Tue Sep 24, 2013 12:08 am
by monte
Hi Sean

I'd encourage you to put these up on GitHub if they are public domain/FOSS. The more LiveCode based projects we can have up there the better. Also as externals are so poorly documented the more examples the better.

Cheers

Monte

Re: Mac OS X Externals

Posted: Tue Sep 24, 2013 5:17 am
by shaosean
Feel free..

Re: Mac OS X Externals

Posted: Tue Sep 24, 2013 5:58 am
by monte
;-) well I don't have your source so I can't

Re: Mac OS X Externals

Posted: Tue Sep 24, 2013 6:12 pm
by Klaus
Hi friends,

maybe one (definitively not me!) could create a "collection" (= all externals in ONE external file)
from these cool sepearate externals? :D


Best

Klaus

Re: Mac OS X Externals

Posted: Tue Sep 24, 2013 7:21 pm
by Mag
My vote for Klaus! :lol:

Re: Mac OS X Externals

Posted: Tue Sep 24, 2013 9:52 pm
by shaosean
Originally they were all in one big external, just thought it might be easier for people to just have everything broken down in to externals that served a single purpose (just use what you need, no bloat ;-) )

Re: Mac OS X Externals

Posted: Wed Sep 25, 2013 12:03 am
by Klaus
Chacun à son goût :D