Re: iOS Control Instantiation problem

2012-04-10 Thread Andrew Meit
I agree fully with you Graham. Its what has been holding me back for doing work with ios. I admire and thank those who can wrestle with the docs and ins/outs of Apple stuff dealing with ios. Here is an idea, provide free (many year agreement) copies of LC mobile to a school/classroom that

Re: iOS Control Instantiation problem

2012-04-10 Thread J. Landman Gay
Graham Samuellivf...@mac.com wrote: I have not yet found out how to filter the Console output so that I only see my own 'put' lines, but give me time... Put the name of your app in the filter field. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software

Re: iOS Control Instantiation problem

2012-04-09 Thread Graham Samuel
Sorry for the waste of bandwidth - I found it in the end: it's all to do with undetected errors in the code. In one case I had a badly formed statement that compiled without problems - I had put 'to' instead of 'into' - so the rest of the handler was skipped; in another case I had called

Re: iOS Control Instantiation problem

2012-04-09 Thread Chris Sheffield
Console is located in /Applications/Utilities. You can also debug this way when running your app on a device. Simply open Xcode, and under your connected device, click the Console icon. Note that the Console application is used when you're running in the simulator, and the Console in Xcode is

Re: iOS Control Instantiation problem

2012-04-09 Thread J. Landman Gay
On 4/9/12 2:22 AM, Ken Ray wrote: On Apr 9, 2012, at 12:01 AM, J. Landman Gay wrote: On 4/8/12 9:44 PM, Ken Ray wrote: local sScrollerID on ShowScroller pViewRect,pContentHt -- pViewRect is the rect of the group that contains the scrolling list field I'm overlaying -- pContentHt is

RE: iOS Control Instantiation problem

2012-04-09 Thread Ralph DiMola
-Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of J. Landman Gay Sent: Monday, April 09, 2012 11:08 AM To: How to use LiveCode Subject: Re: iOS Control Instantiation problem On 4/9/12 2:22 AM, Ken Ray wrote: On Apr

Re: iOS Control Instantiation problem

2012-04-09 Thread Ken Ray
That would make sense, but then how come we can pass the right edge of the group (card-relative) as the third parameter? Shouldn't the third param be the width of the group? Yes, *if* you don't want horizontal scrolling with the scroller… here's a good example of how I use it with a Data

Re: iOS Control Instantiation problem

2012-04-09 Thread Ken Ray
iphoneControlSet sScrollerId, rect, the rect of group 1 put sum(the dgProps[column widths] of grp 1) into tContentWidth put (the dgProp[row height] of grp 1) * (the number of elements of the dgData of grp 1) into tContentHeight iphoneControlSet sScrollerId, contentRect, (0, 0,

iOS Control Instantiation problem

2012-04-08 Thread Graham Samuel
I'm trying to create some native iOS controls as part of a series of experiments, using the iPhone form factor. Among other things, I'm trying to create a scroller. I seem to have fallen at the first fence. Within a preOpenCard handler for the first and only card in the stack, I use this bit

Re: iOS Control Instantiation problem

2012-04-08 Thread Ken Ray
This has got to be my fault, but I can't see where the problem lies. It just must be something stupid and obvious, but what? Any help gratefully received. I can't see anything wrong, Graham, but I can show you what is working for me: local sScrollerID on ShowScroller pViewRect,pContentHt

Re: iOS Control Instantiation problem

2012-04-08 Thread J. Landman Gay
On 4/8/12 9:44 PM, Ken Ray wrote: local sScrollerID on ShowScroller pViewRect,pContentHt -- pViewRect is the rect of the group that contains the scrolling list field I'm overlaying -- pContentHt is the total height of the content of the scrolling list field as if it didn't --