Re: How to develop and deploy with ListMagic within the GLX application framework?

2011-03-05 Thread Keith Clarke
...thanks Bob - very useful stuff - and I'll definitely be referencing this as 
I work through the lessons again and DGH documentation. 

However, before I get to manipulating data, I need to learn how to use non-data 
UI elements within data grids - to replicate ListMagic's row-select checkboxes.

On 4 Mar 2011, at 18:24, Bob Sneidar wrote:

 What really helped me take hold of the reigns of datagrids is the notion of 
 getting the index (or line) of a data control, getting the array associated 
 with that line, altering the array, and then setting the array in the 
 datagrid when I was done. 


___
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: formattedHeight and scrollbars

2011-03-05 Thread Claus Dreischer
Fixed with 4.6.0-dp-6.

http://quality.runrev.com/qacenter/show_bug.cgi?id=9404


We can now use the formattedHeight (or Width) reliably to decide if a
field needs scrollbars or not.

Regards,
Claus.



Am 16.02.11 22:03, schrieb Claus Dreischer:
 Hi,
 
 I'm a bit confused with the formattedHeight of a field and an additional
 scrollbar:
 
 The content of a field has the formattedHeight of e.g. 74
 The scrollbarwidth is set to 10, but the hScrollbar is not enabled yet.
 
 Now when i enable the hScrollbar,
 the formattedHeight of that field jumps to *94*.
 
 The scrollbar is counted twice.
 
 I would have expected the new formattedHeight to jump to 84.
 
 Can someone please explain the logic behind this (when it's intended)?
 
 
 Regards,
   Claus.
 
 ___
 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

___
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: Resizing an image with min and max limits

2011-03-05 Thread Harald Müller
Hi Eric,

the function resizeGraphic in the demo will resize the graphic,
here you could add your image limits.

Best regards,
Harald.

| Harald Müller (app.etcpp.de)
| Theodor-Körner-Straße 4, D-97072 Würzburg
| Telefon 0931-8049170






Am 05.03.2011 um 08:58 schrieb Eric Peyron:

 Hi all, 
 
 I have created an app with multi-touch resizing of images using the How do I 
 implement a multi-touch pinch motion? lesson, but I can't seem to set limits 
 to the resizing. What lines could I add to the code of the sample stack from 
 this lesson to have a min size and and a max size for my image?
 
 Thanks in advance, 
 Eric
 ___
 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
 


___
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: Resizing an image with min and max limits

2011-03-05 Thread eps11
Thanks for your answer. I have been trying to add limits in this section, but 
the results are... strange.

I am trying to put a max limit on the width of image Small (which is 320x480) 
by entering : 

if the width of image Small  480 then set the width of image Small  to 
round(sFRAMEWIDTH * (tPercentage / 100))
if the width of image Small = 480 then 

After this latest then, I have tried everything I know (but I am still a 
beginner)

set the width of image Small to 480 or set the maxwidth of image Small 
to 480 works, but block the resizing at 480
put 100 into tPercentage blocks the resizing at 480 too

At this stage, I think I would need to find a way to enter a fixed value for 
either the percentage or the maxwidth, then reset this value so that the 
resizing could continue, but there might be a better way to do all this.

I am not sure about what to do next.
___
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: Resizing an image with min and max limits

2011-03-05 Thread Mark Schonewille
Hi Eric,

You might find this function useful:

function rescale theImgWidth,theImgHeight,theCdWidth,theCdHeight
  if theCdWidth/theImgWidth  theCdHeight/theImgHeight then
put theCdWidth / theImgWidth into myRatio
  else
put theCdHeight / theImgHeight into myRatio
  end if
  put theImgWidth * myRatio into myNewWidth
  put theImgHeight * myRatio into myNewHeight
  return myNewWidth,myNewHeight
end rescale

TheImgWidth and theImgHeight are the original width and height, e.g. the 
formattedWidth and formattedHeight of an image object, and the CdWidth and 
theDcHeight are the width and height of the destination area. It returns the 
new height and width for your object, with correct aspect ratio.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 5 mrt 2011, at 08:58, Eric Peyron wrote:

 Hi all, 
 
 I have created an app with multi-touch resizing of images using the How do I 
 implement a multi-touch pinch motion? lesson, but I can't seem to set limits 
 to the resizing. What lines could I add to the code of the sample stack from 
 this lesson to have a min size and and a max size for my image?
 
 Thanks in advance, 
 Eric



___
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


I need advise on slow start standalone

2011-03-05 Thread William de Smet
Hi there all,

I have a educational standalone which start very slow on OSX and Win 7 (20 sec 
or longer).The stack has 180 cards and its size is 80 MB. The standalone 
however is only 8 MB but uses 150 MB of RAM. I know all cards are put into 
memory on startup.

Is there a way to speed things up? I already set the 'DontUseQT' to true.
I could put all cards as seperate stacks in a folder and call them when needed. 
So only then they are put in memory, right?
But this is a lot of work :-( 

In addition to this: If I use seperate stacks how do I make sure the individual 
stacks are not opened in the IDE and used? I know I can password protect them 
but I don't want them to open at all. 

All your advise is welcome!!

greetings,

William


___
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


On-Rev antispam ( reCAPTCHA)

2011-03-05 Thread Medard
Bonjour !

After all, on my modest On-Rev blog, I am beginning to get some spam ;-

In my blog, comments are written to separate text files -- so it's easy
to delete and regenerate them when they are filled with spam ;-)

But it is turning into a tedious work!

I thought of a reCAPTCHA solution (now owned by Google), but it seems
a little laborious -- and mostly I don't understand exactly how to
operate with On-Rev...

The client side is quite clear (a form with some script statements),
but I don't see how to code the server side...

They do have some sample code, but not too much -- and no irev code,
only PHP code (I am willing to do that in irev code)

Searching the Nabble archives, I saw that Pierre Wo...ords used some
antispam, but he seems to be using a simpler solution (number of chars
of the email address)

What are your thoughts about that?

-- 
lectures.medard.on-rev.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: On-Rev antispam ( reCAPTCHA)

2011-03-05 Thread stephen barncard
you might do what Sarah did: create a simple handler to create, randomize
and ask a math problem to enter:

What is 6+3 ? entry field  submit button

easily done in php or rev server and requires a human to work

sqb

On 5 March 2011 07:46, Medard liste.r...@medard.on-rev.com wrote:

 Bonjour !

 After all, on my modest On-Rev blog, I am beginning to get some spam ;-

 In my blog, comments are written to separate text files -- so it's easy
 to delete and regenerate them when they are filled with spam ;-)

 But it is turning into a tedious work!

 I thought of a reCAPTCHA solution (now owned by Google), but it seems
 a little laborious -- and mostly I don't understand exactly how to
 operate with On-Rev...

 The client side is quite clear (a form with some script statements),
 but I don't see how to code the server side...

 They do have some sample code, but not too much -- and no irev code,
 only PHP code (I am willing to do that in irev code)

 Searching the Nabble archives, I saw that Pierre Wo...ords used some
 antispam, but he seems to be using a simpler solution (number of chars
 of the email address)

 What are your thoughts about that?

 --
 lectures.medard.on-rev.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




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: On-Rev antispam ( reCAPTCHA)

2011-03-05 Thread Warren Samples
On Sat, 2011-03-05 at 16:46 +0100, Medard wrote: 
 Bonjour !
 
 After all, on my modest On-Rev blog, I am beginning to get some spam ;-
 
 In my blog, comments are written to separate text files -- so it's easy
 to delete and regenerate them when they are filled with spam ;-)
 
 But it is turning into a tedious work!
 
 I thought of a reCAPTCHA solution (now owned by Google), but it seems
 a little laborious -- and mostly I don't understand exactly how to
 operate with On-Rev...
 
 The client side is quite clear (a form with some script statements),
 but I don't see how to code the server side...
 
 They do have some sample code, but not too much -- and no irev code,
 only PHP code (I am willing to do that in irev code)
 
 Searching the Nabble archives, I saw that Pierre Wo...ords used some
 antispam, but he seems to be using a simpler solution (number of chars
 of the email address)
 
 What are your thoughts about that?
 

Hello Medard,


Personally, I have always disliked captcha and in its current form I
absolutely hate it. I can hardly read the damn words and sometimes it
takes forever to get one I can read. Have you considered some variant of
obvious answer? You may find this not too tricky to script, presenting
a randomly selected question or task from a list and checking the user
supplies the correct matching response. This might get a little
cumbersome if there are number of languages you'd feel the need to
support gets long, though. 

Good luck!


___
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: I need advise on slow start standalone

2011-03-05 Thread Geoff Canyon Rev
curious how you're going from an 80mb stack to an 8mb standalone. In any
case, likely you should change it so you only load content when you need it.

If you have any openstack, preopenstack, opencard, preopencard handlers,
throw some diagnostics in them to keep track of time as they execute, to
figure out where the time is going, something like:

put ticks()  step one  cr after displayThisWhenStartupIsComplete

gc
___
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: Live LiveCode Code event #13

2011-03-05 Thread Björnke von Gierke
One hour to go. Invitation to watch: commence!

On 4 Mar 2011, at 18:40, Björnke von Gierke wrote:

 It's here again! 
 
 Due to problems with finding presenters, the regulars had to fly in. Please 
 step up to present. Yes you. You think I don't mean you, but I do. 
 
 Marks presentation will be about reading and writing unicode files, unicode 
 text manipulation by script, and right-to-left text display in LC fields.
 www.livecode.tv/mark
 
 David will wrap up with a undisclosed topic. He promised to do a proper show 
 with recording and example code and stuff, by an oath on his iPhone.
 www.livecode.tv/david
 
 
 get all the info at:
 www.livecode.tv
 
 or simply join chatrev tomorrow, Saturday at:
 Zurich: 20:00
 Buenos Aires: 16:00
 New York:  14:00 
 San Francisco: 11:00
 Sydney: 06:00
 
 Have fun
 Björnke
 
 -- 
 
 official ChatRev page:
 http://bjoernke.com/chatrev
 
 
 Chat with other RunRev developers:
 go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev;
 
 
 ___
 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


___
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 [ANN] New ChartMaker Release

2011-03-05 Thread George C Brackett
Congratulations, Hugh! A very big achievement. 

Speaking as a beta-tester and new owner of CM 2.1, if you deal with data 
display and don't have this tool, you should get it right away; if you have a 
previous version you should upgrade!

George Brackett

 An upgrade for ChartMaker has been released. It has also moved home to its
 own website.
 
 
 If you already have a copy, you can click 'Check for updates...' in the
 program, download the file and follow the link.
 
 If you would like to investigate ChartMaker, see a screencast, find out
 what's new in this release and download a free trial, go to
 www.flexibleLearning.com/chartmaker
 
 You can also download a free trial and purchase ChartMaker from the runRev
 store at http://www.runrev.com/store/product/chartmaker/
 
 
 My public thanks to all the beta testers; you are stars, each one of you!
 
 
 Hugh Senior
 FLCo

___
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


dynamic map of android activations

2011-03-05 Thread Bernard Devlin
http://www.youtube.com/watch?v=fqFpq9WXbJo

Might be of interest to some.  I'm not one for the latest gadgets, so
I had barely heard of Droid.

Bernard

___
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: Resizing an image with min and max limits

2011-03-05 Thread J. Landman Gay

On 3/5/11 5:01 AM, ep...@mac.com wrote:

Thanks for your answer. I have been trying to add limits in this
section, but the results are... strange.

I am trying to put a max limit on the width of image Small (which
is 320x480) by entering :

if the width of image Small  480 then set the width of image
Small  to round(sFRAMEWIDTH * (tPercentage / 100)) if the width of
image Small= 480 then

After this latest then, I have tried everything I know (but I am
still a beginner)

set the width of image Small to 480 or set the maxwidth of image
Small to 480 works, but block the resizing at 480 put 100 into
tPercentage blocks the resizing at 480 too

At this stage, I think I would need to find a way to enter a fixed
value for either the percentage or the maxwidth, then reset this
value so that the resizing could continue, but there might be a
better way to do all this.

I am not sure about what to do next.


Here is a handler I use that scales an image to fit into a specified 
rectanglular area, preserving proportions. You pass a long image 
reference (like the name of image 1 or image 'Small') and the rect 
you want it to fit into. In your case it sounds like that may be the 
screenrect. Images that are already smaller than the target rect are not 
changed. Larger ones get scaled to fit. The location of the image is 
preserved so it doesn't move around the screen.


on scaleToFit pImg,pRect -- pass an image reference  a target rect
  put the formattedHeight of pImg into tFHt
  put the formattedWidth of pImg into tFWd
  put item 3 of pRect - item 1 of pRect into tTargetWd
  put item 4 of pRect - item 2 of pRect into tTargetHt
  set the rect of pImg to pRect -- to init;
  put the loc of pImg into tLoc
  set the width of pImg to tFWd
  set the height of pImg to tFHt
  if tTargetHt  tFHt or tTargetWd  tFWd then
put min(tTargetHt/tFHt, tTargetWd/tFWd) into theRatio
set the height of pImg to tFHt*theRatio
set the width of pImg to tFWd*theRatio
  end if
  set the loc of pImg to tLoc
end scaleToFit


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


Re: On-Rev antispam ( reCAPTCHA)

2011-03-05 Thread Scott Rossi
Recently, Jacque Landman Gay wrote:

 After all, on my modest On-Rev blog, I am beginning to get some spam ;-

 I had the same problem within a few minutes of putting up a contact
 page. I started getting email from bots. My solution is dead simple but
 I haven't received a single spam since I added it.

I recently heard out about this visual captcha service, that requires you to
count objects in an image:
http://www.securitystronghold.com/products/ironclad-captcha/

I haven't used it yet myself, but I like the idea of a picture test.
Ideally, the developers should supplement it with audio like reCaptcha, but
still an interesting solution.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



___
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: I need advise on slow start standalone

2011-03-05 Thread Rick Harrison
Hi William,

Use variables instead of fields when at all possible.
You will find that your executable code will pick up
in speed.

If you are just afraid users will think the stack has
crashed, use a progress bar to tell them when everything
has finished loading.  For some weird reason progress bars
make some people a little more patient.

Other than that, try displays and timers in your code to
see which sections are taking the longest to load.  Then
look at the code to see if there is a more efficient way
of accomplishing the same tasks.

Good luck!

Rick

On Mar 5, 2011, at 9:40 AM, William de Smet wrote:

 Hi there all,
 
 I have a educational standalone which start very slow on OSX and Win 7 (20 
 sec or longer).The stack has 180 cards and its size is 80 MB. The standalone 
 however is only 8 MB but uses 150 MB of RAM. I know all cards are put into 
 memory on startup.
 
 Is there a way to speed things up? I already set the 'DontUseQT' to true.
 I could put all cards as seperate stacks in a folder and call them when 
 needed. 
 So only then they are put in memory, right?
 But this is a lot of work :-( 
 
 In addition to this: If I use seperate stacks how do I make sure the 
 individual stacks are not opened in the IDE and used? I know I can password 
 protect them but I don't want them to open at all. 
 
 All your advise is welcome!!
 
 greetings,
 
 William
 
 
 ___
 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

__
Rick Harrison

You can buy my $10 music album Funny Time Machine digital CD on the iTunes 
Store Now!

To visit the iTunes Store now to listen to samples of my CD please click on the
following link.  (Please note you must have iTunes installed on your computer 
for this link to work.)  

http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playListId=213668290



___
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: On-Rev antispam ( reCAPTCHA)

2011-03-05 Thread Robert Mann
Hi so far the simple double field solution has eliminated spams :
I just require the email info to be written a second time in order to check
its validity.
Your name
Your email
Your emailForValidation


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/On-Rev-antispam-reCAPTCHA-tp3336762p3337116.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: On-Rev antispam ( reCAPTCHA)

2011-03-05 Thread Björnke von Gierke
another trick is to not name your html fields not so obvious. Most bots look 
for email fields and fill in garbage into the rest. So naming your fields 
Applepie, Rocketbooster and Sacknut instead of email, about and 
password will actually get rid of quite a few of the smarter bots.


On 5 Mar 2011, at 22:51, Robert Mann wrote:

 Hi so far the simple double field solution has eliminated spams :
 I just require the email info to be written a second time in order to check
 its validity.
 Your name
 Your email
 Your emailForValidation
 
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/On-Rev-antispam-reCAPTCHA-tp3336762p3337116.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


___
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


Position of Answer Dialog

2011-03-05 Thread RevList
I have an enhancement suggestion.  I do not always want to have the Answer
dialog box show up as a sheet on OS X.  The problem is that it always
centers it on the screen, rather than on the active window as it does on
Windows.
I would prefer to be able to control this position.  This particularly
applies to Answer Color.  I want to have the color picker open right by
the control that I click on, and not way off to the center of the screen.

**
Stewart Lynch
CreaTECH Solutions
sly...@createchsol.com
604.484.8499
Skype:StewartLynch

There are only 10 kinds of people.  Those who understand binary and those
who don't.
**

___
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


Midi measure number to spoken voice?

2011-03-05 Thread Emmett Gray
Does anyone know of a way to have a synthesized voice announce measure numbers 
from a midi file? I've got a long click track someone wants to use for 
rehearsal, but no way to know where they are unless they run a sequencer, but 
they want an MP3.

___
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: On-Rev antispam ( reCAPTCHA)

2011-03-05 Thread Peter W A Wood
another trick is to hide an html field with a name that would encourage a bot 
to complete it such as password and then ignore any request which has it 
filled in.

On 6 Mar 2011, at 06:01, Björnke von Gierke wrote:

 another trick is to not name your html fields not so obvious. Most bots look 
 for email fields and fill in garbage into the rest. So naming your fields 
 Applepie, Rocketbooster and Sacknut instead of email, about and 
 password will actually get rid of quite a few of the smarter bots.
 
 
 On 5 Mar 2011, at 22:51, Robert Mann wrote:
 
 Hi so far the simple double field solution has eliminated spams :
 I just require the email info to be written a second time in order to check
 its validity.
 Your name
 Your email
 Your emailForValidation
 
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/On-Rev-antispam-reCAPTCHA-tp3336762p3337116.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
 
 
 ___
 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


___
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: Newbie: how to start with this iOS project

2011-03-05 Thread John R. Brauer
Jacqueline, 

Thanks for the suggestions. I will start reading about these things your 
mentioned. 

 No databases yet in iOS; no externals at all in fact, although they're 
 coming. But if most of your content is static I don't think I'd bother 
 with one anyway. I'd store the images in a folder on disk and set file 
 references to all the image objects on the cards so they load. Using 
 external image files is more efficient in iOS and is recommended, so 
 don't import the images as controls.
 
 You can use LiveCode's built-in search capabilities for finding stuff. 
 You might want to add a hidden keyword field on each card if the display 
 text doesn't contain all the possible search words.
 
 For user notes, you'll need to store the user's entries in a text file 
 in one of the approved Apple folders, probably Documents. Writing and 
 reading from text files is a one-line operation if you use the url 
 syntax and is also very easy. Read the file in whenever the user wants 
 to see or edit their notes, and put it into a field. Save it back to the 
 text file when they're done.
 
 
 -- 
 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


Currency Formatting wrap up.

2011-03-05 Thread Peter Haworth
I have to break this down into more than one message since my original post was 
apparently too big!

I got the scripts I needed to do the currency formatting I was looking for.  
Thanks to Chris and Alex for providing them.  I couldn't tell which one was the 
best so I'm sending both of them a CD!

I'll include both the scripts in a separate message for those who are 
interested, but wanted to update everyone on what I needed to do to get hold of 
the information I needed from OSX to pass in to the scripts.

You probably saw my posts about the problems I was having with trying to 
execute the locale command from LC.  They were eventually solved by Mark at the 
QC and the solution is:

put line 1 of shell(defaults read .GlobalPreferences AppleLocale) into $LANG
put uniDecode(uniEncode(shell(locale -k LC_MONETARY), utf8)) into tLocale

Please don't ask me to explain it!  All I know is, it worked!

So now I was able to get hold of all the locale information but then discovered 
that wasn't enough.  Turns out that if the user customises any of these 
settings in System Settings/Languages and Text/Formats, those changes do not 
make it to the locale information.  They are stored in the user's 
Library/Preferences folder in a file named com.apple.systempreferences.plist.

I had thought that plist files were in XML format but apparently Apple changed 
that while back to some derivative of XML that is stored as a binary file, so I 
could not just open the file and read it with Livecode.  As an aside, if you 
right click on any of Apple's plist files and select the Quick Look option, it 
will display it in readable form - looks just like XML.

I ended up writing an Applescript to get the info I needed and executing it 
from LiveCode.  That too will be in the follow up posting.

Thanks to everyone for their help.

Pete Haworth




___
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: Newbie: how to start with this iOS project

2011-03-05 Thread J. Landman Gay

On 3/5/11 7:28 PM, John R. Brauer wrote:

Jacqueline,

Thanks for the suggestions. I will start reading about these things your 
mentioned.


Holler if you get stuck. That's why we're here.

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


Re: Currency Formatting wrap up.

2011-03-05 Thread Shao Sean
This information is easily obtained from the OS through the externals  
interface.. The OS also broadcasts when it is changed so no need for  
polling..


___
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