Re: iOS questions

2012-10-17 Thread Mark Smith
Hi Monte, just so I am sure I understand


/command mergNotify pNotification

This command registers for a notification to be sent to the calling control
(me) whenever it occurs. The same notification may be registered by multiple
controls in your app. If a single control registers for the same
notification multiple times it will receive it multiple times./

Does that mean the calling control could be a stack? And if your stack is
made up of multiple stacks do you have to set notifications for each stack
in order to be able to respond to UIApplicationWillResignActiveNotification?

Or can you set it once for the whole application?

Thanks

-- Mark




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/iOS-questions-tp4656338p4656479.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-17 Thread Monte Goulding
Hi Mark

Yes the calling control can be a stack. Anything that you can refer to as 'me' 
in your code. Wherever you handle startup/shutdown etc you can handle 
UIApplicationWillResignActiveNotification for your whole app. Most likely in 
the mainstack script but could be in a library script or backscript.

Cheers

Monte

On 18/10/2012, at 12:53 PM, Mark Smith wrote:

 Hi Monte, just so I am sure I understand
 
 
 /command mergNotify pNotification
 
 This command registers for a notification to be sent to the calling control
 (me) whenever it occurs. The same notification may be registered by multiple
 controls in your app. If a single control registers for the same
 notification multiple times it will receive it multiple times./
 
 Does that mean the calling control could be a stack? And if your stack is
 made up of multiple stacks do you have to set notifications for each stack
 in order to be able to respond to UIApplicationWillResignActiveNotification?
 
 Or can you set it once for the whole application?
 
 Thanks
 
 -- Mark
 
 
 
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/iOS-questions-tp4656338p4656479.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-16 Thread Mark Smith
J. Landman Gay wrote
 It's a field in the iOS pane in standalone settings. Just choose a PNG 
 from your hard drive.

Got that working, very cool! Do you know if there is an option to remove the
shine (settings, newsstand, contacts, calendar, game centre for example
don't have shine, messages, youtube, iTunes, appstore do have shine). For my
icon image, it would be best without.

Thanks

-- Mark



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/iOS-questions-tp4656338p4656458.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-16 Thread Colin Holgate
At the top of the icons section is a checkbox marked Prerendered Icon. Checking 
that will make it use your non-shine version.




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-14 Thread Mark Smith
Jacque, thanks for the pointer re: the icon.

Monte, what I want to do is encrypt the file (mergeAES) before the system
shuts down or hibernates. Essentially trap it and send a shutdown/close
stack request to myself so I can terminate in an orderly fashion. Doable?

Thanks

-- Mark



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/iOS-questions-tp4656338p4656371.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-14 Thread Monte Goulding

 Monte, what I want to do is encrypt the file (mergeAES) before the system
 shuts down or hibernates. Essentially trap it and send a shutdown/close
 stack request to myself so I can terminate in an orderly fashion. Doable?


mergNotify UIApplicationWillResignActiveNotification

on UIApplicationWillResignActiveNotification
   -- do your encryption here
end UIApplicationWillResignActiveNotification

Cheers

Monte

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-14 Thread Mark Smith
Monte Goulding wrote
 on UIApplicationWillResignActiveNotification
-- do your encryption here
 end UIApplicationWillResignActiveNotification

Thanks



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/iOS-questions-tp4656338p4656373.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-14 Thread Mark Smith
Monte Goulding wrote
 on UIApplicationWillResignActiveNotification
-- do your encryption here
 end UIApplicationWillResignActiveNotification

I'm going to try:


on UIApplicationWillResignActiveNotification
   close this stack
end UIApplicationWillResignActiveNotification

and see if we can get an orderly shutdown with encryption and all (all the
code to handle it is in the closestack handler) which is also sent when you
press the home button. 

Interestingly I just checked the docs on the home button and its not
mentioned except in reference to the screen orientation. But clearly when
you press home it sends a closestack message and shuts down the
application. Strange how this would not be documented (unless I missed it)?




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/iOS-questions-tp4656338p4656374.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-14 Thread Monte Goulding

On 15/10/2012, at 2:10 PM, Mark Smith wrote:

 Monte Goulding wrote
 on UIApplicationWillResignActiveNotification
   -- do your encryption here
 end UIApplicationWillResignActiveNotification
 
 I'm going to try:
 
 
 on UIApplicationWillResignActiveNotification
   close this stack
 end UIApplicationWillResignActiveNotification

Hmm... I'm not positive that's the best plan as you will probably find your 
stack is closed when the user awakens their phone. I would suggest something 
like this:

on closeStack
  encryptItAll
end encryptItAll

on UIApplicationWillResignActiveNotification
  encryptItAll
end UIApplicationWillResignActiveNotification

on encryptItAll
  -- do your encryption and save
end encryptItAll

If you really want to force quit at sleep then try:

on UIApplicationWillResignActiveNotification
  quit
end UIApplicationWillResignActiveNotification

Not sure if apple will be happy about that though

Cheers

Monte

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-13 Thread Monte Goulding
I don't think you can trap this event. Also I don't think there's a separate 
notification for this button as opposed to the system just going to sleep. But 
if you just want to know if the device is put to sleep eiher way with your app 
running then that's what mergNotify was invented for. You want 
UIApplicationWillResignActiveNotification and 
UIApplicationDidBecomeActiveNotification and these are in the demo.

Cheers

Monte

--
M E R Goulding
Software development services

mergExt - There's an external for that!

On 14/10/2012, at 1:22 PM, Mark Smith mark_sm...@cpe.umanitoba.ca wrote:

 1. can we detect the on/off button (upper right, towards the rear) on an
 iPad?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: iOS questions

2012-10-13 Thread J. Landman Gay

On 10/13/12 9:22 PM, Mark Smith wrote:


2. is there a tutorial around on how to add an application icon for an iPad
program?


It's a field in the iOS pane in standalone settings. Just choose a PNG 
from your hard drive.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode