iOS SDK config problems
I was delighted to see the LiveCode iOS externals SDK ship, and to see an instruction video on the RunRev channel to help me get started. I expected to run into problems with starting to write my own Objective C code, but I actually ran into problems much sooner. So I might need some help. What I have installed is: the DP4 of Lion, LiveCode 4.6.2, the iOS Externals SDK, Xcode 3.2.6 and iOS SDK 4.3. And with this configuration, I cannot use the test button in the LiveCode toolbar. So I went to the Preferences, and under Mobile Support, I tried to reset the 'Location of developer root for iOS 3.2 and above'. It was set to /Developer, which should be right. But when I choose that folder again, I get an error: The chosen folder is not a valid iOS SDK for 3.2 and later. It must be the one that ships with XCode 3.2.4 or later. Bummer! It might be because of Lion. So I restarted from my bootable clone I made before upgrading to Lion and I installed LiveCode 4.6.2 and the Externals SDK on it. So now I have almost the same config, but with the newest Snow Leopard instead of Lion. That was better. Testing on the iPhone Simulator worked as expected. So I started following along with the instruction video, but near the end of it, the instructor chose iPhone Simulator from the pulldown menu. That option wasn't available for me. Over here, it reads Base SDK Missing on that same pulldown menu. I did some googling on that, but I was unsuccessful in solving it. What am I doing wrong? Terry ___ 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: the objectType of me?
Hi Slava, You can use: word 1 of the abbrev name of me The abbrev name will return 'the type of control and the short name' like: button myButton or graphic this grc Claudi On 26 jun 2011, at 07:00, Slava Paperno wrote: I'm looking for the name of the property that states the object's control type, e.g. if the controlType of me is button then set cursor to hand The term controlType exists only in my imagination... what is that property called, please? Slava ___ 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 custom control Circular Slider
What is your environnement ? Thank you René Le 26 juin 2011 à 02:21, SparkOut a écrit : I'm getting the same behaviour as AcidJazz - click on a slider and it works, but never lets go and have to Ctrl+Alt+Del to kill LC in order to get anything else to respond. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-New-custom-control-Circular-Slider-tp3605381p3625253.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
Re: the objectType of me?
On 6/25/11 10:49 PM, Claudi Cornaz wrote: Hi Slava, You can use: word 1 of the abbrev name of me The abbrev name will return 'the type of control and the short name' like: button myButton or graphic this grc Claudi Slava... there is no controlType using Claudi suggestion: by making a command/function put this in your object's script on mousewithin switchControls(the abbrev name of me) end mousewithin Then in your group, card or stack script put: command switchControls pObjectName put word 1 of pObjectName into tControlType switch tControlType case button set the cursor to hand break case field answer this is a field with OK set the cursor to iBeam break end switch end switchControls Tried to put these script handlers in to button and use the button ID as a behavior in other objects, but it doesn't work. dunnu why.. ___ 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: the objectType of me?
On 6/25/11 7:06 PM, Slava Paperno wrote: Is that the way to do it? Seems a bit childish:) There's got to be a controlType property, no? Slava Sorry, I don't think so... using Claudi suggestion: by making a command/function put this in your object's script on mousewithin switchControls(the abbrev name of me) end mousewithin Then in your group, card or stack script put: command switchControls pObjectName put word 1 of pObjectName into tControlType switch tControlType case button set the cursor to hand break case field answer this is a field with OK set the cursor to iBeam break end switch end switchControls Tried to put these script handlers in to button and use the button ID as a behavior in other objects, but it doesn't work. dunnu why.. the host object does not pass mousewithin to the behavior object assigned to it. i think I recall something about this from one of the conferences but don't know where it is documented. skts ___ 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: the objectType of me?
You could always use a frontScript to add that functionality yourself.. getProp controlType return word 1 of the name of the target end controlType if (the controlType of me = button) then # do button stuff else # do non-button stuff end if ___ 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: the object Type of me?
Right! Thanks, man, S. getProp controlType return word 1 of the name of the target end controlType ... ___ 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: OS X Dock menu
Iconmenu doesn't show up in the dictionary. How can I find more information on it? Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jun 23, 2009, at 4:12 AM, jim sims wrote: I was hoping to use the icon menu part and not the changing icon part. It seems that the menu has issues after it has been used a time or two and simply stops working. At first (as is my usual suspicion) I thought it must be my scripting, but after reading the list archives and seeing Sarah's words: Anyway, I hope my experience will save others from wasting their time - the dock icon works fine, but don't bother trying to make a menu :-( If Sarah wasn't getting it to work then my attempts stopped right there. Too bad, would be a great feature. I sent the above a few days ago, I want to add to it so anyone searching the archives will get a more complete story. The archives are my friends - Archives is Good. Sarah was kind enough to check her code and found this: Checking through my scripts again, I found this at the very end of the iconMenuPick handler: -- this is essential to make the normal menus work set the iconmenu to empty end iconMenuPick As she states, it does seem to be essential - in any event my icon menu now works fine. sims ___ use-revolution mailing list use-revolut...@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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: OS X Dock menu
Bill, In the release notes. -- 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 26 jun 2011, at 18:02, Bill Vlahos wrote: Iconmenu doesn't show up in the dictionary. How can I find more information on it? Bill Vlahos ___ 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: OS X Dock menu
Page 28 of the release notes http://www.runrev.com/downloads/livecode/4_6_2/LiveCodeNotes-4_6_2.pdf the iconMenu is the old unsupported syntax and the new syntax is Windows only.. ___ 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: OS X Dock menu
Bummer. Thanks for the info to Mark too. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jun 26, 2011, at 10:42 AM, Shao Sean wrote: Page 28 of the release notes http://www.runrev.com/downloads/livecode/4_6_2/LiveCodeNotes-4_6_2.pdf the iconMenu is the old unsupported syntax and the new syntax is Windows only.. ___ 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
one way to crash the IDE
In case anyone is interested, here is one way to crash the 4.6.1 IDE in Windows 7 so bad that you can't even switch to the running instance of Task Manager: add to your resizeStack handler a reference to a non-existing control, then in the Run mode try to resize the stack. Works every time. Which reminds me of a question I saw that no one has answered: when you've accidentally created an infinite loop in a handler, is there a secret key press to abort all scripts? Thanks, Slava ___ 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: [[ SPAM ]] RE: one way to crash the IDE
Now that I know the answer, I was able to search for it :) There's a Tip in User Guide section 10.1.4 Interrupting Execution, but you must set allowInterrupts to true, first: control-period/command-period. Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Slava Paperno Sent: Sunday, June 26, 2011 3:33 PM To: 'How to use LiveCode' Subject: [[ SPAM ]] RE: one way to crash the IDE Thanks, Colin. Ctrl+period doesn't do that on Windows. Nor Ctrl+Q, Ctrl+C, or Esc... maybe someone else can help us here. S. Don't know about Windows, but on Mac command-period breaks into the running script. ___ 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: the object Type of me?
Finding out that a control is a button is often just the starting point - I needed to know what type of button it was - push button, default button, option menu button, combobox button, a popup menu button, checkbox, radio button, tab control, etc. If you need to be that specific, in addition to checking word 1 of the abbrev name, you have to check the style and menumode properties to figure all that out. Pete Molly's Revenge http://www.mollysrevenge.com On Sun, Jun 26, 2011 at 7:59 AM, Slava Paperno sl...@lexiconbridge.comwrote: Right! Thanks, man, S. getProp controlType return word 1 of the name of the target end controlType ... ___ 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: the object Type of me?
Thanks, Pete! Very helpful. S. Finding out that a control is a button is often just the starting point - I needed to know what type of button it was - push button, default button, option menu button, combobox button, a popup menu button, checkbox, radio button, tab control, etc. If you need to be that specific, in addition to checking word 1 of the abbrev name, you have to check the style and menumode properties to figure all that out. Pete Molly's Revenge http://www.mollysrevenge.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: formattedheight and formattedwidth
Thanks. I guess the dictionary is misleading (yet again) when it says: If you specify a card or group, the *formattedHeight* reports the height of a rectangle that includes all objects in that card or group whose visible property is true. I tried this: set the height of this stack to the height of this card set the width of this stack to the width of this card Is that what you meant? That sometimes works and sometimes isn't close. Pete Molly's Revenge http://www.mollysrevenge.com On Sat, Jun 25, 2011 at 7:04 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 6/25/11 2:17 PM, Pete wrote: I have a number of cards in the same substack that need to be displayed with different heights and widths. In the preOpenStack handlerr, I have: set the height of this stack to the formattedheight of this card set the width of this stack to the formattedwidth of this card The height and width end up several pixels short of what they need to be. Adding 10 to the fomattedheight and 20 to the formattedwidth makes things about right, but Use the height and width, not the formattedHeight and formattedWidth. The formatted measurements only include the smallest area that encompasses all the visible objects objects. If the card objects don't touch all four sides, the formatted measurements will be smaller than the card measurements. -- 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-livecodehttp://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: the object Type of me?
Slava, If you put this in the stack script or in a backscript, getprop objectType return word 1 of the name of target end objectType you can use put the objectType of control 1 get the objectType of me -- 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 ___ 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: the object Type of me?
Tres cool! Just like Adobe Director... S. getprop objectType return word 1 of the name of target end objectType you can use put the objectType of control 1 get the objectType of me -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 ___ 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: one way to crash the IDE
I thought it was CTRL+BREAK ___ 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 formattedwidth
On 6/26/11 2:52 PM, Pete wrote: Thanks. I guess the dictionary is misleading (yet again) when it says: If you specify a card or group, the *formattedHeight* reports the height of a rectangle that includes all objects in that card or group whose visible property is true. It seems accurate to me. The formatted measurement is the amount of space occupied by all visible objects on the card. It is calculated from the smallest rectangle that will enclose all of them. It does not include any empty borders around that area. I tried this: set the height of this stack to the height of this card set the width of this stack to the width of this card Is that what you meant? That sometimes works and sometimes isn't close. Yes, that's what I meant, assuming you want to set the window to same size as the card. If you are on OS X and you have a menu bar set, the top of the card will be scrolled out of view, so the height of the card will actually be taller than what you see before you change the size. If you are getting extra space at the bottom of the window then that's probably why. If you are on Windows then the card and window height should match up without any differences. -- 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: formattedheight and formattedwidth
OK I see what you mean about the formatted versions of height/width. The straight height and width properties don't seem to come anywhere close to working even allowing for menu bar issues (I'm on OS X). They set the height/width to what they were for the previous card opened in the stack, not the current card. I've tried this in preOpenStack and preOpenCard so maybe this card in the prewOpen handlers is still set to the last card opened since this one hasn't been opened yet? I think I will have to use the formatted height and width and be consistant about how much room is around the borders of the controls on each card. Pete Molly's Revenge http://www.mollysrevenge.com On Sun, Jun 26, 2011 at 3:55 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 6/26/11 2:52 PM, Pete wrote: Thanks. I guess the dictionary is misleading (yet again) when it says: If you specify a card or group, the *formattedHeight* reports the height of a rectangle that includes all objects in that card or group whose visible property is true. It seems accurate to me. The formatted measurement is the amount of space occupied by all visible objects on the card. It is calculated from the smallest rectangle that will enclose all of them. It does not include any empty borders around that area. I tried this: set the height of this stack to the height of this card set the width of this stack to the width of this card Is that what you meant? That sometimes works and sometimes isn't close. Yes, that's what I meant, assuming you want to set the window to same size as the card. If you are on OS X and you have a menu bar set, the top of the card will be scrolled out of view, so the height of the card will actually be taller than what you see before you change the size. If you are getting extra space at the bottom of the window then that's probably why. If you are on Windows then the card and window height should match up without any differences. -- 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-livecodehttp://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: formattedheight and formattedwidth
On 26.06.2011 at 17:42 Uhr -0700 Pete apparently wrote: I think I will have to use the formatted height and width and be consistant about how much room is around the borders of the controls on each card. If your cards vary in size but are static, that is not changed dynamically by users, then you could save the desired width and height of each card in custom properties and resize each card in preopencard. Robert ___ 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 formattedwidth
Yep, that's what I was doing initially but was looking for a way to make it happen without actually knowing the height and width. I think I have this working now. I made sure that the topmost control on each card always had it's topleft set to 10,10 , then I add 20 to each of the formatted height and formatted width during preOpenCard. That seems to work just fine. Pete Molly's Revenge http://www.mollysrevenge.com On Sun, Jun 26, 2011 at 6:12 PM, Robert Brenstein r...@robelko.com wrote: On 26.06.2011 at 17:42 Uhr -0700 Pete apparently wrote: I think I will have to use the formatted height and width and be consistant about how much room is around the borders of the controls on each card. If your cards vary in size but are static, that is not changed dynamically by users, then you could save the desired width and height of each card in custom properties and resize each card in preopencard. Robert __**_ 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-livecodehttp://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: one way to crash the IDE
FWIW, resizeStack and mousemove handlers have always been a 'difficult' to debug. For this reason, I typically try and move my mouseMove handler to a mouseUp while debugging. And turn off liveresizing for the stack to help debug resizeStack. ___ 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
ANN: WordLib 1.5 Goes Mobile with Document Import
Import Microsoft Word and Open Office documents in your iPhone and iPad apps! WordLib 1.5 brings iOS support to the LiveCode add-on library for document import. New users can get started easily with the included desktop and mobile examples, plus an extensive user guide. Existing users will be happy to download the free update and move into mobile document import. This release also provides easier and simpler installation of the library into project stacks. Missouri-based LiveCode developer and consultant Curry Kenworthy believes this is an important step for the add-on library. If you haven't used WordLib before, the concept is simple: import word processing documents to your app with one or two lines of code. You specify a document and a field, and it's done. Now mobile apps are empowered too! WordLib is written 100% in LiveCode and uses direct, original algorithms for powerful document translation. Virtually all document formatting features supported by LiveCode field controls are handled during import, including fonts, text styles, colors, highlighting, links, images, tables, bullets, footnotes, and more. WordLib is available at the RunRev Store and at the CurryK page: http://runrev.com/store/ http://www.curryk.com/wordlib.html Curry Kenworthy offers consulting and coding for large and small software development projects around the world, along with LiveCode training. http://curryk.com/consulting/ ___ 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