Mac OS X Externals

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

Re: Mac OS X Externals

Post by shaosean » Fri Jul 26, 2013 9:40 am

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

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Mac OS X Externals

Post by Mag » Fri Jul 26, 2013 9:55 am


Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Mac OS X Externals

Post by Mag » Fri Jul 26, 2013 9:58 am

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

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

Re: Mac OS X Externals

Post by shaosean » Fri Jul 26, 2013 11:16 am

It might not show up in that command, but just try using the command in the external and it should work (if installed correctly)..

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Mac OS X Externals

Post by Mag » Fri Jul 26, 2013 11:26 am

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)

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

ssUserSessionEvents

Post by shaosean » Sun Jul 28, 2013 6:37 am

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
Attachments
ssUserSessionEvents.bundle.zip
(6.12 KiB) Downloaded 341 times

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

ssScreenSaverEvents

Post by shaosean » Sun Jul 28, 2013 8:17 am

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
Attachments
ssScreenSaverEvents.bundle.zip
(6.37 KiB) Downloaded 320 times

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

ssFadeDisplay

Post by shaosean » Sun Jul 28, 2013 10:06 am

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
Attachments
ssFadeDisplay.bundle.zip
(7.16 KiB) Downloaded 323 times

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Mac OS X Externals

Post by monte » Tue Sep 24, 2013 12:08 am

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
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

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

Re: Mac OS X Externals

Post by shaosean » Tue Sep 24, 2013 5:17 am

Feel free..

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Mac OS X Externals

Post by monte » Tue Sep 24, 2013 5:58 am

;-) well I don't have your source so I can't
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

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

Re: Mac OS X Externals

Post by Klaus » Tue Sep 24, 2013 6:12 pm

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

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Mac OS X Externals

Post by Mag » Tue Sep 24, 2013 7:21 pm

My vote for Klaus! :lol:

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

Re: Mac OS X Externals

Post by shaosean » Tue Sep 24, 2013 9:52 pm

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 ;-) )

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

Re: Mac OS X Externals

Post by Klaus » Wed Sep 25, 2013 12:03 am

Chacun à son goût :D

Post Reply