what form of "split" turns a tab-delimited variable into an array with the first line as keys?

2010-04-09 Thread Josh Mellicker
Given a variable like this, where the first line is "headers":

name  [tab]  color  [tab]  food
Trevor  [tab]  green  [tab]  salad
Sarah  [tab]  blue  [tab]  pizza
Richard  [tab]  orange  [tab]  burgers
David  [tab]  purple  [tab]  fruit

What is the best way to turn this into an array, where the array keys are the 
first line of the variable?

I have tried various forms of "split by" ""split using" and ""split with" but 
haven't found the right formula. Personally I find the documentation on the 
various forms of the "split" and "combine" commands a bit scant.

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


Re: doom and gloom in the iPhone world

2010-04-09 Thread Peter Alcibiades

There is always Android, you know.  This is disturbing and distasteful, but
it is in no way surprising.  Is there Rev for Android in the works?  Or does
it run on Android already?
-- 
View this message in context: 
http://n4.nabble.com/doom-and-gloom-in-the-iPhone-world-tp1788757p1815142.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revMobile

2010-04-09 Thread René Micout
In the post : "Cross-platform software toolkits have never — ever — produced 
top-notch native apps for Apple platforms. Not for the classic Mac OS, not for 
Mac OS X". I think that about RunRev. For a Mac user it is the race to the 
bottom. Now, to build my applications, I do to build a large part of the 
interface...
René

Le 9 avr. 2010 à 04:38, Jerry Daniels a écrit :

> Gruber just post a more studied view of Apple's latest ruling (the infamous 
> Section 331) which we have been discussing in this thread:
> 
>   http://daringfireball.net/2010/04/why_apple_changed_section_331
> 
> I anticipate this latest change to the "rules" will generate quite fierce 
> debate among all concerned--which includes those of us who have bought into 
> revMobile. 
> 
> Best,
> 
> Jerry Daniels
> 
> Use tRev's buy link during your free trial to get 20% off:
> http://reveditor.com/tag/shouldiswitch
> 
> On Apr 8, 2010, at 7:34 PM, Jerry Daniels  wrote:
> 
>> This link is interesting:
>> 
>>   http://news.ycombinator.com/item?id=1250946
>> 
>> In the post referenced above, the multi-platform aspect of pre-compilers is 
>> called out as one of the main reasons for the new rule. This is worth a read 
>> and from one of the foremost finders of software developers which these days 
>> means iPhone and iPad.
>> 
>> The crew in Scotland are usually very conservative in their approach in most 
>> matters. So, would be surprised if they've painted themselves into a corner.
>> 
>> As far as "the team" being way ahead of us...this late breaking news. It's 
>> not a question of lack of technical chops or foresight.  
>> 
>> Best,
>> 
>> Jerry Daniels
>> 
>> Use tRev's buy link during your free trial to get 20% off:
>> http://reveditor.com/tag/shouldiswitch
>> 
>> On Apr 8, 2010, at 7:05 PM, "J. Landman Gay"  
>> wrote:
>> 
>>> Jerry Daniels wrote:
 I have trouble believing that a pre compiler is a problem. Any
 framework is essentially the same thing. RevMobile doesn't actually
 compile anything as far as I can tell. It creates a file(s) to be
 compiled by Objective-C, yes?
>>> 
>>> Yeah. Nobody panic. As far as I can tell, the rules haven't changed much, 
>>> the team is aware of the limitations, and RevMobile doesn't break them. 
>>> There is no interpreted layer in a built RevMobile app; Rev scripts go 
>>> directly from RevTalk to binary. We have limitations on using "interpreted" 
>>> commands in our scripts, and they won't be accepted -- i.e., we can't use 
>>> do, value, or any parameters that aren't already evaluated before they're 
>>> sent (see the revmobile docs about that. It's not as bad as it sounds.)
>>> 
>>> Kevin may have more to say about it, but I think the team is way ahead of 
>>> you guys. ;)
>>> 
>>> -- 
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software   | http://www.hyperactivesw.com
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: revMobile

2010-04-09 Thread Peter Alcibiades

Gruber's piece is excellent.  But even if this one gets resolved, you have to
consider that if the company supplying the platform is in a position to set
any conditions at all that it feels like setting on both applications that
can run on it, and content that can be accessed from it, then as a supplier
of either to that platform, you are at their mercy.  Do you want to be
there?

Is it the company we thought it was?  Was it ever the company we thought it
was?

It applies just as much to if as a novelist you adopt the iPad as your
preferred e-book distribution channel.  One day you could wake up and
discover that owing to the too vigorously expressed politically incorrect
sentiments of your leading character on page 203, your contribution to
literature was now impossible to buy, and worse, had been deleted from all
Pads, and refunds already given.  And this was before breakfast!
-- 
View this message in context: 
http://n4.nabble.com/revMobile-tp1788792p1816112.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revMobile

2010-04-09 Thread Tariel Gogoberidze

On Thu, 08 Apr 2010 20:10:08 -0400, Colin Holgate wrote:

> 
> The other tool maker communities are arguing similarly, that if it came down 
> to it the tool could export an XCode project (like Unity does), and you do 
> the final compile from that Objective-C code,
> Unfortunately, the wording is very clear, that the app needs to be 
> "originally" programmed in Objective-C, and not that it can be Objective-C 
> just at the end. It also says there can't be links to the APIs through an 
> intermediate translation layer. In a sense that's what the revMobile plugin 
> is doing, as a pre-process, not a runtime one.
> 


> the wording is very clear, that the app needs to be "originally" programmed 
> in Objective-C,

I'm curious how is Apple going to enforce this?. Let's say somebody used third 
party tool to write the code in X language which tool translated to perfect 
Xcode project.
So, how Apple would know how Xcode project was actually written?

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


This is what it actually says

2010-04-09 Thread Peter Alcibiades

"Applications must be originally written in Objective-C, C, C++, or
JavaScript as executed by the iPhone OS WebKit engine, and only code written
in C, C++, and Objective-C may compile and directly link against the
Documented APIs (e.g., Applications that link to Documented APIs through an
intermediary translation or compatibility layer or tool are prohibited),"

C++ is a great language, I'm sure everyone will love it once they get to
know it.
-- 
View this message in context: 
http://n4.nabble.com/revMobile-tp1788792p1818174.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: This is what it actually says

2010-04-09 Thread Sarah Reichelt
On Fri, Apr 9, 2010 at 5:47 PM, Peter Alcibiades
 wrote:
>
> "Applications must be originally written in Objective-C, C, C++, or
> JavaScript as executed by the iPhone OS WebKit engine, and only code written
> in C, C++, and Objective-C may compile and directly link against the
> Documented APIs (e.g., Applications that link to Documented APIs through an
> intermediary translation or compatibility layer or tool are prohibited),"
>
> C++ is a great language, I'm sure everyone will love it once they get to
> know it.

LOL!

However Objective-C is not C++ and is about as nice as C can get.
Apple's IDE is very nice and the Interface Builder is great. So if you
have to switch to developing for iPhone/iPad in Obj-C, don't despair.

But I am optimistic. I think RunRev will not have got this far with
revMobile without some serious discussions with Apple. If the
revMobile engine is written in one of the approved languages, then
maybe our stacks will be considered as data files, like plists or
databases.

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


Re: revMobile

2010-04-09 Thread Richmond Mathewson

 On 09/04/2010 10:23, Peter Alcibiades wrote:

Gruber's piece is excellent.  But even if this one gets resolved, you have to
consider that if the company supplying the platform is in a position to set
any conditions at all that it feels like setting on both applications that
can run on it, and content that can be accessed from it, then as a supplier
of either to that platform, you are at their mercy.  Do you want to be
there?

Is it the company we thought it was?  Was it ever the company we thought it
was?

It applies just as much to if as a novelist you adopt the iPad as your
preferred e-book distribution channel.  One day you could wake up and
discover that owing to the too vigorously expressed politically incorrect
sentiments of your leading character on page 203, your contribution to
literature was now impossible to buy, and worse, had been deleted from all
Pads, and refunds already given.  And this was before breakfast!

 Well, this is true of any operating system . . .  or, put another way:

Until RunRev produces its own OS, and gets the vast majority of people to
run it on their computers they will always have to twiddle things around
to fit whichever systems they want RunRev to run on.

This may be behind the reticence with regard to the Linux version of
RunRev: RunRev (the company) do not perceive Linux as a serious
commercial competitor (and the important word here is 'commercial')
to Windows and Macintosh; and, as far as I can see, a considerable
amount of twiddling has to be done to get the Linux version up to par
with W & M, thye may not feel it justified.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: This is what it actually says

2010-04-09 Thread Richmond Mathewson

 On 09/04/2010 10:47, Peter Alcibiades wrote:

"Applications must be originally written in Objective-C, C, C++, or
JavaScript as executed by the iPhone OS WebKit engine, and only code written
in C, C++, and Objective-C may compile and directly link against the
Documented APIs (e.g., Applications that link to Documented APIs through an
intermediary translation or compatibility layer or tool are prohibited),"

C++ is a great language, I'm sure everyone will love it once they get to
know it.

Really?  As soon as somebody tells me something like "I'm sure everyone
will love it once they get to know it" I feel queasy . . .  :)

Also: how long does it take to "get to know it" ? after something of the 
order

of 9 years (on the back of Hypercard and Toolbook experience) "getting to
know" RunRev (and, frankly, it sometimes still seems that I am at the 
'courting' stage),

I don't really feel like starting a new romance.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revMobile

2010-04-09 Thread Kevin Miller
Hi,

Thank you for your comments and questions with regard to the new licensing
provisions in Apple's iPhone agreement. We value all our customers greatly
and we know how important it is to you all that revMobile is launched as an
outstanding platform to deliver iPhone apps in full compliance with Apple
policies. We know many of you have already invested considerable energy in
getting your applications ready for the iPhone and iPad.

As part of Apple's announcement yesterday, Apple have posted updated iPhone
Terms of Service. The specifics of these changes are under NDA so we cannot
discuss them at this point. We have an excellent relationship with Apple and
we will be working with them to address any specific issues that may need
clarification in relation to their proposed changes.

Rest assured that we will be doing everything possible to ensure a speedy
and positive resolution that allows you to deliver outstanding apps on the
revMobile platform in full compliance with Apple policies.

I will be posting further information as I get it over the coming days.

Please feel free to get in touch with us if you have any questions or would
like to discuss this further. Thanks to everyone who has offered their
support.

Kind regards,

Kevin

Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/
RunRev - Software construction for everyone


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


Re: revMobile

2010-04-09 Thread Colin Holgate
On Apr 9, 2010, at 3:36 AM, Tariel Gogoberidze  wrote:

> So, how Apple would know how Xcode project was actually written?

One theory us that they could embed some encrypted code, and although it might 
be hard to tell what tool was used for all other cases, they could easily tell 
which ones were made with their tools. 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Datagrid - Selecting a line after sorting ..

2010-04-09 Thread Trevor DeVore

On Apr 8, 2010, at 11:03 PM, JACK RARICK wrote:

I have a datagrid with one hundred rows and six columns. The user  
clicks on a "cell" somewhere in the middle of the grid that  
immediately performs an action and resorts the grid. The row number  
is stored - but how do I get the original line "reselected" so the  
user knows where he was?


Grab the dgHilitedIndex before you sort and then set the  
dgHilitedIndex after performing the sort. Using the index allows you  
to track rows in the Data Grid regardless of sort order.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


how to tell if an app is running

2010-04-09 Thread Peter Brigham MD
How do I tell if an app (eg, iTunes) is up and running vs not open?  
I'm assuming there's no native Rev function for this (or am I missing  
something?) and I'm not familiar enough with shell commands to figure  
it out.


-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

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


Re: Datagrid - Selecting a line after sorting ..

2010-04-09 Thread jrarick
Perfect!

Absolutely perfect!  Thanks Trevor ... Again.

Jack Rarick
Braintree Athletic Systems

--Original Message--
From: Trevor DeVore
Sender: use-revolution-boun...@lists.runrev.com
To: How to use Revolution
ReplyTo: How to use Revolution
Subject: Re: Datagrid - Selecting a line after sorting ..
Sent: Apr 9, 2010 9:26 AM

On Apr 8, 2010, at 11:03 PM, JACK RARICK wrote:

> I have a datagrid with one hundred rows and six columns. The user  
> clicks on a "cell" somewhere in the middle of the grid that  
> immediately performs an action and resorts the grid. The row number  
> is stored - but how do I get the original line "reselected" so the  
> user knows where he was?

Grab the dgHilitedIndex before you sort and then set the  
dgHilitedIndex after performing the sort. Using the index allows you  
to track rows in the Data Grid regardless of sort order.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Sent from my Verizon Wireless BlackBerry___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: Datagrid: How get column data from other column behavior

2010-04-09 Thread Andre.Bisseret

Bonjour,

Assuming I have a datagrid "cellar" with

Appellation / Price
Bourgogne / 43
Bordeaux / 38
Aubance / 25

I want to change the price of one wine

1 - the user has to select a line then

put the dgHilitedLines of grp "Cellar" into tLine
put the dgDataOfLine[tLine] of grp "Cellar" into theDataA
ask "What's the price?" with theDataA["Price"]
put it into theDataA["Price"]
set the dgDataOfLine[tLine] of group "Cellar" to theDataA

OK works well

2 - Now I would like to be able to change a price but starting from a  
given wine' name, not from the selection of a its line (not really  
needed currently, but for learning more about datagrid ;-))


I found the following; for example I have to change the price of the  
Aubance:


put the dgData of grp "cellar" into theDataA
repeat for each key theIndex in theDataA
if theDataA[theIndex]["Appellation"] is "Aubance" then
Ask "What's the new price for Aubance?"
 put it into theDataA[theIndex]["Price"]
end if
set the dgData of grp "cellar" to theDataA
end repeat

That works but seems not particularly straighforward (the loop only to  
find the right one ;-)))


Am sure there is a far better way but I don't find it
Any idea much appreciated

Best regards from Grenoble

André


Le 8 avr. 10 à 15:24, Trevor DeVore a écrit :


On Apr 6, 2010, at 5:07 PM, JosepM wrote:

I need to customize one column behavior in function of the data of  
other

column.
How can get the value of the other column from the script of the  
behavior

for the column?

Any idea?


Use GetDataOfIndex().

Data Grid API: 


Examples:

How Can I Colorize Individual Lines in a Table?: 


How Do I Get Data Associated With a Row or Column?: 


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Re: what form of "split" turns a tab-delimited variable into an array with the first line as keys?

2010-04-09 Thread Michael Kann
Using asterisks instead of tabs, put 

name*color*food
Trevor*green*salad
Sarah*blue*pizza

into fld 1
--
Use this script:
--
on mouseUp
set the itemDelimiter to "*"
put fld 1 into v
put line 1 of v into headers_line
delete line 1 of v
---
put zero into line_num

repeat for each line c_line in v
add 1 to line_num
put zero into item_num

repeat for each item c_item in c_line
add 1 to item_num
put item item_num of headers_line into x
put c_item into josh_array[x][line_num]
---
-- next two lines are just
-- to view the resulting array
---
put josh_array[x][line_num] into y
put x && line_num && y && return after h
---
end repeat
end repeat

put h into fld 2
end mouseUp



--- On Fri, 4/9/10, Josh Mellicker  wrote:

> From: Josh Mellicker 
> Subject: what form of "split" turns a tab-delimited variable into an array 
> with the first line as keys?
> To: "how to use Revolution" 
> Date: Friday, April 9, 2010, 2:07 AM
> Given a variable like this, where the
> first line is "headers":
> 
> name  [tab]  color  [tab]  food
> Trevor  [tab]  green  [tab]  salad
> Sarah  [tab]  blue  [tab]  pizza
> Richard  [tab]  orange  [tab]  burgers
> David  [tab]  purple  [tab]  fruit
> 
> What is the best way to turn this into an array, where the
> array keys are the first line of the variable?
> 
> I have tried various forms of "split by" ""split using" and
> ""split with" but haven't found the right formula.
> Personally I find the documentation on the various forms of
> the "split" and "combine" commands a bit scant.
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



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


Re: [OT] Mac Batch Converter

2010-04-09 Thread Bob Sneidar
It may. I will give that a try. But I don't think anything but iTunes can even 
play M4P encoded songs. 

Bob


On Apr 8, 2010, at 5:32 PM, Mark Swindell wrote:

> Would this help? In Quicktime Player, open the AV Controls (Window/Show A/V 
> Contols). There you can change both playback speed and pitch shift 
> independently.  I think you can even "save as" the file to reflect your 
> changes.
> 
> Mark

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


Re: what form of "split" turns a tab-delimited variable into an array with the first line as keys?

2010-04-09 Thread Bob Sneidar
Just had a few rounds with split and combine, and they are not what you think 
they are. Split takes the first value in a delimited line and that becomes the 
key. The rest of the items become the elements. The commands are fairly useless 
for much of anything. 

Bob


On Apr 9, 2010, at 12:07 AM, Josh Mellicker wrote:

> Given a variable like this, where the first line is "headers":
> 
> name  [tab]  color  [tab]  food
> Trevor  [tab]  green  [tab]  salad
> Sarah  [tab]  blue  [tab]  pizza
> Richard  [tab]  orange  [tab]  burgers
> David  [tab]  purple  [tab]  fruit
> 
> What is the best way to turn this into an array, where the array keys are the 
> first line of the variable?
> 
> I have tried various forms of "split by" ""split using" and ""split with" but 
> haven't found the right formula. Personally I find the documentation on the 
> various forms of the "split" and "combine" commands a bit scant.
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Datagrid locking field

2010-04-09 Thread jrarick
I am very appreciative of all the things that dg can do. But what I need is a 
way to PREVENT the user from editing a fld. I need to be able to disable the 
mousedouble messages. Is this possible? I am using the guide and the tutorials 
... But obviously not well enough!

Thanks - as always and in advance!

Jack Rarick
Braintree Athletics
Sent from my Verizon Wireless BlackBerry
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


on mouseEnter

2010-04-09 Thread Andrew Kluthe

Currently, I have a stack that attaches to whatever window is open and
provide help information for my application.

In each object that I wanted help information for is a on mouseEnter handler
that changes the text of the help information stack.

I was thinking a better way to do this might be to handle/override the
mouseEnter handler for the whole stack?

something like this:

on mouseEnter
set the helpInfo of stack "Help" to the helpText of the target
end mouseEnter

Could I handle or override the mouseEnter in the stack or card script to
pull the helpText of whatever control the mouse is over?

Or should I stick with what I have?
-- 
View this message in context: 
http://n4.nabble.com/on-mouseEnter-tp1819477p1819477.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: what form of "split" turns a tab-delimited variable into an array with the first line as keys?

2010-04-09 Thread Björnke von Gierke
That the split and combines are useless is completely wrong. I use them all the 
time and it's a huge timesaver for manipulating x,y matrices. Of course, for 
the given Task, they do not work for what you want directly. You'll need to 
change the orientation first, for example thusly:

on mouseUp
   --assuming the example colour and food data from below
   put field 1 into theData
   split theData by column
   repeat with theKey = 1 to the number of lines in the keys of theData
  replace return with tab in theData[theKey]
   end repeat
   combine theData by return
   split theData by return and tab
   put the keys of theData --all done
end mouseUp

Of course a single line solution for switching the orientation of tables would 
be most handily, because this is really arcane. I'm sure there's other ways 
that are faster, especially when you only use "repeat for each line in theData" 
in combination with "put after ", but you asked about combine and 
split ;)

Bjoernke

On 9 Apr 2010, at 17:13, Bob Sneidar wrote:

> Just had a few rounds with split and combine, and they are not what you think 
> they are. Split takes the first value in a delimited line and that becomes 
> the key. The rest of the items become the elements. The commands are fairly 
> useless for much of anything. 
> 
> Bob
> 
> 
> On Apr 9, 2010, at 12:07 AM, Josh Mellicker wrote:
> 
>> Given a variable like this, where the first line is "headers":
>> 
>> name  [tab]  color  [tab]  food
>> Trevor  [tab]  green  [tab]  salad
>> Sarah  [tab]  blue  [tab]  pizza
>> Richard  [tab]  orange  [tab]  burgers
>> David  [tab]  purple  [tab]  fruit
>> 
>> What is the best way to turn this into an array, where the array keys are 
>> the first line of the variable?
>> 
>> I have tried various forms of "split by" ""split using" and ""split with" 
>> but haven't found the right formula. Personally I find the documentation on 
>> the various forms of the "split" and "combine" commands a bit scant.


-- 

official ChatRev page:
http://bjoernke.com?target=chatrev

Chat with other RunRev developers:
go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev";

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


Re: Datagrid: How get column data from other column behavior

2010-04-09 Thread Trevor DeVore

On Apr 9, 2010, at 10:46 AM, Andre.Bisseret wrote:


Assuming I have a datagrid "cellar" with

Appellation / Price
Bourgogne / 43
Bordeaux / 38
Aubance / 25

I want to change the price of one wine

1 - the user has to select a line then

put the dgHilitedLines of grp "Cellar" into tLine
put the dgDataOfLine[tLine] of grp "Cellar" into theDataA
ask "What's the price?" with theDataA["Price"]
put it into theDataA["Price"]
set the dgDataOfLine[tLine] of group "Cellar" to theDataA


You could also just use SetDataOfIndex here instead of extracting the  
row array, setting a key and reassigning it.


2 - Now I would like to be able to change a price but starting from  
a given wine' name, not from the selection of a its line (not really  
needed currently, but for learning more about datagrid ;-))


I found the following; for example I have to change the price of the  
Aubance:


put the dgData of grp "cellar" into theDataA
repeat for each key theIndex in theDataA
if theDataA[theIndex]["Appellation"] is "Aubance" then
Ask "What's the new price for Aubance?"
put it into theDataA[theIndex]["Price"]
end if
set the dgData of grp "cellar" to theDataA
end repeat


For simple finds you can use FindIndex.

dispatch "FindIndex" to group "cellar" with "Appellation", "Aubance"
put the result into theIndex

if theIndex > 0 then
-- change pricee of row.
end if

API page: 
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7344-Data-Grid-API

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Datagrid locking field

2010-04-09 Thread Trevor DeVore

On Apr 9, 2010, at 11:20 AM, jrar...@hpsk12.net wrote:

I am very appreciative of all the things that dg can do. But what I  
need is a way to PREVENT the user from editing a fld. I need to be  
able to disable the mousedouble messages. Is this possible? I am  
using the guide and the tutorials ... But obviously not well enough!


You can always trap messages in the data grid group script so that  
they don't pass to the data grid behavior script. If you catch  
mouseDoubleUp/Down and don't pass it then you effectively override the  
normal behavior.


BUT if you just want to turn off editing of a column in a table check  
out the dgColumnIsEditable property:


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7343-Data-Grid-Properties

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Mac Batch Converter

2010-04-09 Thread Richmond Mathewson

 On 09/04/2010 18:03, Bob Sneidar wrote:

It may. I will give that a try. But I don't think anything but iTunes can even 
play M4P encoded songs.

Bob



Have a look at this:

http://www.noteburner.com/itunes-music-mp3-player.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Mac Batch Converter

2010-04-09 Thread Ian Wood
In theory anything that's calling QT directly (such as iTunes and  
QuickTime Player) can play a protected MP4 file.


Out of curiosity, how old is the file? The iTunes Store dropped the  
DRM from music files some time ago, or so i seem to remember.


Ian

On 9 Apr 2010, at 16:03, Bob Sneidar wrote:


But I don't think anything but iTunes can even play M4P encoded songs.


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


Re: [OT] Mac Batch Converter

2010-04-09 Thread Mark Swindell
I tested it with an mp4 before sending the post.  It worked fine here, and 
allowed me to save the altered file, though not as an mp4, but rather a QT 
Movie.

Mark

On Apr 9, 2010, at 8:03 AM, Bob Sneidar wrote:

> It may. I will give that a try. But I don't think anything but iTunes can 
> even play M4P encoded songs. 
> 
> Bob
> 
> 
> On Apr 8, 2010, at 5:32 PM, Mark Swindell wrote:
> 
>> Would this help? In Quicktime Player, open the AV Controls (Window/Show A/V 
>> Contols). There you can change both playback speed and pitch shift 
>> independently.  I think you can even "save as" the file to reflect your 
>> changes.
>> 
>> Mark
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Becoming the man who CAN?

2010-04-09 Thread Richmond Mathewson

 Well, we try, we really do . . .  :)

Although some of us, who are not men, may be a bit
miffed by being offered the chance.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Becoming the man who CAN?

2010-04-09 Thread Richmond Mathewson

 "Supercharge your learning with a free Conference in a Box" . . .

Dear me; must be the Bulgarian Postal Services to blame this time.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Becoming the man who CAN?

2010-04-09 Thread Neal Campbell
Reminds me of the joke Johnny Depp used in one of Robert Rodriquez's movies
"Do you want to be a Mexican or a Mexican't?"
Neal Campbell
Abroham Neal Software
www.abrohamnealsoftware.com
(540) 645 5394 NEW PHONE NUMBER


On Fri, Apr 9, 2010 at 1:00 PM, Richmond Mathewson <
richmondmathew...@gmail.com> wrote:

>  "Supercharge your learning with a free Conference in a Box" . . .
>
> Dear me; must be the Bulgarian Postal Services to blame this time.
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Implementing the Mac "Quick Look" type of window

2010-04-09 Thread Peter Haworth
Not sure the correct term for this but I'm looking for a way to to  
implement windows that look like the "Quick Look" windows on a Mac.  
They "explode" out from the document icon popup menu that you select  
the Quick Look function  from.  They have a semi-transparent border  
around the document they display and a close button at the top left  
and a vertical scroll bar.


I thought maybe the opaque property of a card might be a starting  
point but it doesn't seem to affect the appearance of the card at  
all.  Also tried playing around with the various options of the  
Blending Properties but they seem to affect the appearance of objects  
on the card rather than the card itself.


Thanks for any pointers as to how to do this,

Pete Haworth








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


Re: Implementing the Mac "Quick Look" type of window

2010-04-09 Thread Devin Asay

On Apr 9, 2010, at 11:07 AM, Peter Haworth wrote:

> Not sure the correct term for this but I'm looking for a way to to  
> implement windows that look like the "Quick Look" windows on a Mac.  
> They "explode" out from the document icon popup menu that you select  
> the Quick Look function  from.  They have a semi-transparent border  
> around the document they display and a close button at the top left  
> and a vertical scroll bar.
> 
> I thought maybe the opaque property of a card might be a starting  
> point but it doesn't seem to affect the appearance of the card at  
> all.  Also tried playing around with the various options of the  
> Blending Properties but they seem to affect the appearance of objects  
> on the card rather than the card itself.
> 
> Thanks for any pointers as to how to do this,

Actually, Pete, if you are on a Mac, 10.5 or higher, you can can access the 
QuickLook capability directly. I wrote this script after a discussion on this 
list a few months back. Thanks to Bernd Niggeman and Jim Sims for the ideas:

on mouseUp
  answer file "please choose ..."
  if it is empty then exit mouseUp
  put it into theFile
  put apostrophe (theFile) into theFile
  --put "qlmanage -t " & "-s 900 " & theFile into tcmd -- apparently sets it to 
max orig size, white window
  -- put "qlmanage -t " & "-f 5 " & theFile into tcmd  apparently sets it 
to max orig size, white window
  put "qlmanage -p " & theFile into tcmd -- shows it in a black window
  get shell  (tCmd)
  if the result is not empty then put the result
end mouseUp

function apostrophe what
  return "'" & what & "'"
end apostrophe

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: This is what it actually says

2010-04-09 Thread Richmond Mathewson

  On 09/04/2010 10:47, Peter Alcibiades wrote:

"Applications must be originally written in Objective-C, C, C++, or
JavaScript as executed by the iPhone OS WebKit engine, and only code written
in C, C++, and Objective-C may compile and directly link against the
Documented APIs (e.g., Applications that link to Documented APIs through an
intermediary translation or compatibility layer or tool are prohibited),"

C++ is a great language, I'm sure everyone will love it once they get to
know it.

No, not really:

I broke out in a cold sweat when I saw this:

http://en.wikipedia.org/wiki/Objective-C

I like RunRev, and looking at pages like that let my know why.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: how to tell if an app is running

2010-04-09 Thread zryip theSlug
2010/4/9 Peter Brigham MD :
> How do I tell if an app (eg, iTunes) is up and running vs not open? I'm
> assuming there's no native Rev function for this (or am I missing
> something?) and I'm not familiar enough with shell commands to figure it
> out.
>
> -- Peter
>

Hi Peter,

I invite you to read this recent thread:

http://www.mail-archive.com/use-revolution@lists.runrev.com/msg131084.html


HTH,

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: what form of "split" turns a tab-delimited variable into an array with the first line as keys?

2010-04-09 Thread Jim Ault

On Apr 9, 2010, at 8:13 AM, Bob Sneidar wrote:

Just had a few rounds with split and combine, and they are not what  
you think they are. Split takes the first value in a delimited line  
and that becomes the key. The rest of the items become the elements.  
The commands are fairly useless for much of anything.


Bob


I use split and combine often for routine processing of large data sets.
I operate several high-speed networks using the power of spit/combine.

Remember, in their simple form, they are associative arrays, not  
indexed arrays.
Using a few techniques, they become a good way to store very complex  
and multi-dimensional data sets.


For cross-tabulation or table translation it is fairly easy to setup  
up a couple temporary arrays to quickly make the tasks happen.  You  
need to remember that associative arrays use strings as keys and  
duplicate keys result in replacement.  For example, translating a  
table could result in the new keys being duplicate strings, thus some  
of the data would get lost (overwritten).  It is easy to avoid this.


Also look at Intersect and Union in the docs for ways of filtering  
arrays without the filter command.
Build a temp array with desired keys, then intersect to keep the  
qualifiers.


At some point, it is better to use a database, such as sql-type or  
Valentina.



For me, I enjoy the speed and ease-of-use, realizing that these arrays  
are not the same as indexed arrays (thus are not as powerful for  
mathematics, etc)


Jim Ault
Las Vegas

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


Re: on mouseEnter

2010-04-09 Thread zryip theSlug
2010/4/9 Andrew Kluthe :
>
> Currently, I have a stack that attaches to whatever window is open and
> provide help information for my application.
>
> In each object that I wanted help information for is a on mouseEnter handler
> that changes the text of the help information stack.
>
> I was thinking a better way to do this might be to handle/override the
> mouseEnter handler for the whole stack?
>
> something like this:
>
> on mouseEnter
> set the helpInfo of stack "Help" to the helpText of the target
> end mouseEnter
>
> Could I handle or override the mouseEnter in the stack or card script to
> pull the helpText of whatever control the mouse is over?
>
> Or should I stick with what I have?

Hi Andrew,

Effectively you can place the mouseEnter handler in the card or the
stack script instead of each object script you want to document.

Events in Runrev follows the object hierarchy presented in this
excellent article from Richard Gaskin:

http://www.fourthworld.com/embassy/articles/revolution_message_path.html

-> If you want that an object display the help message, remove the
mouseEnter from its script. In this case, the mouseEnter will be
intercepted by the next object in the hierarchy (the group -> the card
-> the bg -> the substack -> the stack, in this order)
In your case, place the mouseEnter handler in your card or stack.

-> If you want that a special object performs an action on mouseEnter,
then displays its help message, use the pass command in your control,
like this:

on mouseEnter
doSomethingWithTheCtrl
pass mouseEnter -- pass the mouseEnter to the next object in the hierarchy
end mouseEnter

-> If you want that your mouseEnter handler follows all the hierarchy
place a mouseEnter event in each level of the hierarchy, with the pass
mouseEnter command.

-> You can also pass the handler directly to an object without follow
the hierarchy. For this, use the send, dispatch or call commands (this
commands was recently discussed in this thread
http://www.mail-archive.com/use-revolution@lists.runrev.com/msg131598.html),
like this:

on mouseEnter
send "mouseEnter" to anotherObject
end mouseEnter

-> At last you can stop the event with the exit command:

on mouseEnter
if (the helpText of the target is empty) then exit mouseEnter
displayHelpMessage the helpText of the target
pass mouseEnter
end mouseEnter

HTH,

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Datagrid: How get column data from other column behavior

2010-04-09 Thread Andre.Bisseret

Thanks a lot Trevor for you advices

Am learning more and more about data grid (and arrays); very exciting  
indeed ;-)))


André

Le 9 avr. 10 à 17:58, Trevor DeVore a écrit :


On Apr 9, 2010, at 10:46 AM, Andre.Bisseret wrote:


Assuming I have a datagrid "cellar" with

Appellation / Price
Bourgogne / 43
Bordeaux / 38
Aubance / 25

I want to change the price of one wine

1 - the user has to select a line then

put the dgHilitedLines of grp "Cellar" into tLine
put the dgDataOfLine[tLine] of grp "Cellar" into theDataA
ask "What's the price?" with theDataA["Price"]
put it into theDataA["Price"]
set the dgDataOfLine[tLine] of group "Cellar" to theDataA


You could also just use SetDataOfIndex here instead of extracting  
the row array, setting a key and reassigning it.


2 - Now I would like to be able to change a price but starting from  
a given wine' name, not from the selection of a its line (not  
really needed currently, but for learning more about datagrid ;-))


I found the following; for example I have to change the price of  
the Aubance:


put the dgData of grp "cellar" into theDataA
repeat for each key theIndex in theDataA
if theDataA[theIndex]["Appellation"] is "Aubance" then
Ask "What's the new price for Aubance?"
put it into theDataA[theIndex]["Price"]
end if
set the dgData of grp "cellar" to theDataA
end repeat


For simple finds you can use FindIndex.

dispatch "FindIndex" to group "cellar" with "Appellation", "Aubance"
put the result into theIndex

if theIndex > 0 then
   -- change pricee of row.
end if

API page: 
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7344-Data-Grid-API

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




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


Re: how to tell if an app is running

2010-04-09 Thread Peter Brigham MD
I thought there had been something recent on this. Thanks. I should  
have put in in my library when I first saw it, but I didn't. Now I have.


-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig



On Apr 9, 2010, at 1:42 PM, zryip theSlug wrote:


2010/4/9 Peter Brigham MD :
How do I tell if an app (eg, iTunes) is up and running vs not open?  
I'm

assuming there's no native Rev function for this (or am I missing
something?) and I'm not familiar enough with shell commands to  
figure it

out.

-- Peter



Hi Peter,

I invite you to read this recent thread:

http://www.mail-archive.com/use-revolution@lists.runrev.com/msg131084.html


HTH,

--
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: on mouseEnter

2010-04-09 Thread Andrew Kluthe

Well said Zryip! Thank you. :) This will make it much easier to be more
comprehenisve.
-- 
View this message in context: 
http://n4.nabble.com/on-mouseEnter-tp1819477p1819781.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Mac Batch Converter

2010-04-09 Thread Bob Sneidar
Ho hey! They have a Mac version! I may have to love this.

Bob


On Apr 9, 2010, at 9:06 AM, Richmond Mathewson wrote:

> On 09/04/2010 18:03, Bob Sneidar wrote:
>> It may. I will give that a try. But I don't think anything but iTunes can 
>> even play M4P encoded songs.
>> 
>> Bob
>> 
>> 
> Have a look at this:
> 
> http://www.noteburner.com/itunes-music-mp3-player.html
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: revMobile

2010-04-09 Thread François Chaplais
I have read Gruber's post and (sadly?) it makes sense. Lowest common 
denominators are things that have almost killed Apple in the past. Just think 
of the three letter extension for files; the mess that has resulted in the 
file/creator binding.
I have also received a post from Kevin Miller, as I have spent some 700 euros 
on revmobile.

I  think there is a way to get out of this mess
--- forget revmobile as a cross mobile platform environment ---
--- convince Apple that revmobile will enhance iPhone dev, collaborate with 
them on this ---
--- don't despair; iPhone jailbreak has pushed for Apple to distribute an SDK 
---

best,
François

Le 9 avr. 2010 à 04:38, Jerry Daniels a écrit :

> Gruber just post a more studied view of Apple's latest ruling (the infamous 
> Section 331) which we have been discussing in this thread:
> 
>   http://daringfireball.net/2010/04/why_apple_changed_section_331
> 
> I anticipate this latest change to the "rules" will generate quite fierce 
> debate among all concerned--which includes those of us who have bought into 
> revMobile. 
> 
> Best,
> 
> Jerry Daniels
> 



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


putting an icon in the mac system menubar?

2010-04-09 Thread Peter Brigham MD
Is there any way of putting an icon for an app into the Mac system  
menubar -- up near the spaces, airport, & battery icons, etc. ? My  
wish is for a clickable icon available at all times in all spaces. Can  
this be done?


-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

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


Re: revMobile

2010-04-09 Thread Richard Gaskin

François Chaplais wrote:

> I have read Gruber's post and (sadly?) it makes sense. Lowest
> common denominators are things that have almost killed Apple
> in the past. Just think of the three letter extension for
> files; the mess that has resulted in the file/creator binding.
> I have also received a post from Kevin Miller, as I have spent
> some 700 euros on revmobile.
>
> I  think there is a way to get out of this mess
> --- forget revmobile as a cross mobile platform environment...

Au contraire:



From:



--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: what form of "split" turns a tab-delimited variable into an array with the first line as keys?

2010-04-09 Thread Josh Mellicker
Thanks for everyone's help.

Though Bjoernke's solution looks clever, I could not get it to work.

I ended up with this ugly thing:

function turnIntoArray p
   put line 1 of p into tHeaders
   set the itemDelimiter to tab
   repeat with x = 2 to the number of lines in p
  repeat with y = 1 to the number of items in tHeaders
 put item y of line x of p into a[x][item y of tHeaders]
  end repeat
   end repeat
   return a
end turnIntoArray

On Apr 9, 2010, at 8:56 AM, Björnke von Gierke wrote:

> That the split and combines are useless is completely wrong. I use them all 
> the time and it's a huge timesaver for manipulating x,y matrices. Of course, 
> for the given Task, they do not work for what you want directly. You'll need 
> to change the orientation first, for example thusly:
> 
> on mouseUp
>   --assuming the example colour and food data from below
>   put field 1 into theData
>   split theData by column
>   repeat with theKey = 1 to the number of lines in the keys of theData
>  replace return with tab in theData[theKey]
>   end repeat
>   combine theData by return
>   split theData by return and tab
>   put the keys of theData --all done
> end mouseUp
> 
> Of course a single line solution for switching the orientation of tables 
> would be most handily, because this is really arcane. I'm sure there's other 
> ways that are faster, especially when you only use "repeat for each line in 
> theData" in combination with "put after ", but you asked about 
> combine and split ;)
> 
> Bjoernke
> 
> On 9 Apr 2010, at 17:13, Bob Sneidar wrote:
> 
>> Just had a few rounds with split and combine, and they are not what you 
>> think they are. Split takes the first value in a delimited line and that 
>> becomes the key. The rest of the items become the elements. The commands are 
>> fairly useless for much of anything. 
>> 
>> Bob
>> 
>> 
>> On Apr 9, 2010, at 12:07 AM, Josh Mellicker wrote:
>> 
>>> Given a variable like this, where the first line is "headers":
>>> 
>>> name  [tab]  color  [tab]  food
>>> Trevor  [tab]  green  [tab]  salad
>>> Sarah  [tab]  blue  [tab]  pizza
>>> Richard  [tab]  orange  [tab]  burgers
>>> David  [tab]  purple  [tab]  fruit
>>> 
>>> What is the best way to turn this into an array, where the array keys are 
>>> the first line of the variable?
>>> 
>>> I have tried various forms of "split by" ""split using" and ""split with" 
>>> but haven't found the right formula. Personally I find the documentation on 
>>> the various forms of the "split" and "combine" commands a bit scant.
> 
> 
> -- 
> 
> official ChatRev page:
> http://bjoernke.com?target=chatrev
> 
> Chat with other RunRev developers:
> go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev";
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: what form of "split" turns a tab-delimited variable into an array with the first line as keys?

2010-04-09 Thread Björnke von Gierke
Oi my solution works fine, it must b your computer that's amiss :P

No seriously, i tested it here and it did what I thought you wanted?


On 10 Apr 2010, at 00:06, Josh Mellicker wrote:

> Thanks for everyone's help.
> 
> Though Bjoernke's solution looks clever, I could not get it to work.
> 
> I ended up with this ugly thing:
> 
> function turnIntoArray p
>   put line 1 of p into tHeaders
>   set the itemDelimiter to tab
>   repeat with x = 2 to the number of lines in p
>  repeat with y = 1 to the number of items in tHeaders
> put item y of line x of p into a[x][item y of tHeaders]
>  end repeat
>   end repeat
>   return a
> end turnIntoArray
> 
> On Apr 9, 2010, at 8:56 AM, Björnke von Gierke wrote:
> 
>> That the split and combines are useless is completely wrong. I use them all 
>> the time and it's a huge timesaver for manipulating x,y matrices. Of course, 
>> for the given Task, they do not work for what you want directly. You'll need 
>> to change the orientation first, for example thusly:
>> 
>> on mouseUp
>>  --assuming the example colour and food data from below
>>  put field 1 into theData
>>  split theData by column
>>  repeat with theKey = 1 to the number of lines in the keys of theData
>> replace return with tab in theData[theKey]
>>  end repeat
>>  combine theData by return
>>  split theData by return and tab
>>  put the keys of theData --all done
>> end mouseUp
>> 
>> Of course a single line solution for switching the orientation of tables 
>> would be most handily, because this is really arcane. I'm sure there's other 
>> ways that are faster, especially when you only use "repeat for each line in 
>> theData" in combination with "put after ", but you asked about 
>> combine and split ;)
>> 
>> Bjoernke
>> 
>> On 9 Apr 2010, at 17:13, Bob Sneidar wrote:
>> 
>>> Just had a few rounds with split and combine, and they are not what you 
>>> think they are. Split takes the first value in a delimited line and that 
>>> becomes the key. The rest of the items become the elements. The commands 
>>> are fairly useless for much of anything. 
>>> 
>>> Bob
>>> 
>>> 
>>> On Apr 9, 2010, at 12:07 AM, Josh Mellicker wrote:
>>> 
 Given a variable like this, where the first line is "headers":
 
 name  [tab]  color  [tab]  food
 Trevor  [tab]  green  [tab]  salad
 Sarah  [tab]  blue  [tab]  pizza
 Richard  [tab]  orange  [tab]  burgers
 David  [tab]  purple  [tab]  fruit
 
 What is the best way to turn this into an array, where the array keys are 
 the first line of the variable?
 
 I have tried various forms of "split by" ""split using" and ""split with" 
 but haven't found the right formula. Personally I find the documentation 
 on the various forms of the "split" and "combine" commands a bit scant.
>> 
>> 
>> -- 
>> 
>> official ChatRev page:
>> http://bjoernke.com?target=chatrev
>> 
>> Chat with other RunRev developers:
>> go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev";
>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: [OT] Mac Batch Converter

2010-04-09 Thread Bob Sneidar
This works like a charm. I originally thought it only produced MP3,s but it 
also produces AAC files. It has a Mac and a Windows version. Very nice. It 
makes a virtual CD burner, then tricks iTunes into burning to it, but it simply 
outputs the files where you tell it to. 

Bob


On Apr 9, 2010, at 9:06 AM, Richmond Mathewson wrote:

> On 09/04/2010 18:03, Bob Sneidar wrote:
>> It may. I will give that a try. But I don't think anything but iTunes can 
>> even play M4P encoded songs.
>> 
>> Bob
>> 
>> 
> Have a look at this:
> 
> http://www.noteburner.com/itunes-music-mp3-player.html
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: revMobile

2010-04-09 Thread Peter Alcibiades

Excellent article in the link.  Hits the nail on the head.  Its a very high
stakes game, this one, if you are Apple. 

Where is Rev for Android, by the way?  Or does Rev for Linux run on it, out
of the box?  I haven't tried Android, is it just another Linux distribution
from a development point of view?
-- 
View this message in context: 
http://n4.nabble.com/revMobile-tp1788792p1819993.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revMobile

2010-04-09 Thread Björnke von Gierke
I think the new eula was crafted overzealously out of an accident, somewhere 
deep in the dungeon of infinite loop, where they cage the lawyers. If I'm 
right, then the problematic rule will be fixed sooner or later.

my 2 Rappen


-- 

official ChatRev page:
http://bjoernke.com?target=chatrev

Chat with other RunRev developers:
go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev";

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


Re: revMobile

2010-04-09 Thread Richard Gaskin

Peter Alcibiades wrote:
> Where is Rev for Android, by the way?  Or does Rev for Linux run on
> it, out of the box?

While I've not read any public statements from RunRev that they will be 
supporting Android, Gartner expects them to overtake iPhone OS by 2012 
so I'd be surprised if RunRev wasn't considering it:





> I haven't tried Android, is it just another Linux distribution
> from a development point of view?

I haven't played with it myself, but the v2.1 specs are impressive and 
Apple's licensing is encouraging me to consider getting a device that 
runs it. ;)


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revMobile

2010-04-09 Thread Scott Rossi
Recently, Richard Gaskin wrote:

>> I haven't tried Android, is it just another Linux distribution
>> from a development point of view?
> 
> I haven't played with it myself, but the v2.1 specs are impressive and
> Apple's licensing is encouraging me to consider getting a device that
> runs it. ;)

The grass is always greener.



Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


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


Re: What does the 4.0 iPhone SDK mean for revMobile?

2010-04-09 Thread Jerry Daniels
Found this post interesting:

The primary reason for the change, say sources familiar with Apple's plans, is 
to support sophisticated new multitasking APIs in iPhone 4.0. The system will 
now be evaluating apps as they run in order to implement smart multitasking. It 
can't do this if apps are running within a runtime or are cross compiled with a 
foreign structure that doesn't behave identically to a native C/C++/Obj-C app.
"[The operating system] can't swap out resources, it can't pause some threads 
while allowing others to run, it can't selectively notify, etc. Apple needs 
full access to a properly-compiled app to do the pull off the tricks they are 
with this new OS," wrote one reader under the name Ktappe.

Best,

Jerry Daniels

Use tRev's buy link during your free trial to get 20% off:
http://reveditor.com/tag/shouldiswitch
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: on mouseEnter

2010-04-09 Thread DunbarX
I wrote a helper stack that traps mouseEnter and then does stuff. The 
optionKey has to be down in my version, but it works pretty seamlessly.

The stack is called "wizard" and was just updated at revOnLine.

Look at the stack script, which is made a backscript when the stack is 
opened. It might give you a few ideas.

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


Authenicated URLs for Amazon S3 in on-rev

2010-04-09 Thread Martin Koob
Is it possible to generate authenticated URLs for
Amazon S3 on on-rev?

I have tried out Mark Smiths libS3 and libAWS in a stack and have
had success with that but I was wondering whether I could do the same
thing in on-rev.

Basically I just want to generate a time limited url for files stored on
amazon s3 so I think I would just need a subset of the features in the libS3.

Could I just upload libS3 to my on-rev site and then include it and use 
the commands that are in that library or are there parts of that library that
would not be able to run on on-rev.

Thanks.

Martin

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


Authenicated URLs for Amazon S3 in on-rev

2010-04-09 Thread Martin Koob
Is it possible to generate authenticated URLs for
Amazon S3 on on-rev?

I have tried out Mark Smiths libS3 and libAWS in a stack and have
had success with that but I was wondering whether I could do the same
thing in on-rev.

Basically I just want to generate a time limited url for files stored on
amazon s3 so I think I would just need a subset of the features in the libS3.

Could I just upload libS3 to my on-rev site and then include it and use 
the commands that are in that library or are there parts of that library that
would not be able to run on on-rev.

Thanks.

Martin

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


Re: What does the 4.0 iPhone SDK mean for revMobile?

2010-04-09 Thread Peter Alcibiades

I came upon this in the Ars thread on the subject, where there is generally
more heat than light on this issue, but didn't really understand concretely
what exactly it is saying.  

If that were what the objective was, why would Apple not simply set
standards for the way the compiled app must work?  Surely the great oddity
of the clause is that it is forbidding the use of tools which do generate
apps that do 'behave identically to a native C/C++/Ob-C app, simply because
they are the wrong kind of tools?

It does not seem to be the performance of the compiled apps that is the
issue, it seems to be the use of the wrong kind of tools to generate those
apps.  Or, is the argument that there are no such tools?  That nothing
except the approved tools generates apps that behave right?  Cannot be, can
it?

Someone on the Ars thread says a bit later on in rebuttal of the remark
Jerry quoted

"This simply doesn't pass muster.

"Except for specially flagged applications, iPhone OS 4.0 suspends every
thread of every application once that application is put in the background.

"There is literally no reason why it could not do this for applications
developed in Flash or any other toolkit. None.

"This is plainly obvious given the fact that applications written using the
banned toolkits work properly on OS 4.0. They can be started, put into the
background, and then put back into the foreground perfectly well. This is
not being done for technical reasons."

And other people raise the issue of what reason there is to think that
compilation with a 'foreign structure', whatever that is, results in a
runtime that does not behave identically.  Are there in fact any properly
documented cases of this occurring?  

Ah well, we got to watch out for those 'foreign structures'.  They just want
to come in here, and pollute our native code.  That was very amusing, one
started to wonder at that point whether it was a coder writing, or maybe
someone in the marketing department of some large company  



-- 
View this message in context: 
http://n4.nabble.com/Re-What-does-the-4-0-iPhone-SDK-mean-for-revMobile-tp1820064p1820097.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: What does the 4.0 iPhone SDK mean for revMobile?

2010-04-09 Thread Colin Holgate
There are a number of flaws in the arguments in that message. Currently all old 
apps, proper XCode ones or non-XCode ones, don't behave correctly with the 
multitasking. Some apps don't pause when you're fast app switching, and even 
the ones that do pause do a start from scratch when you return to the app. Only 
the new versions of apps from Apple do the correct resume exactly where you 
left off behavior.

I think that it will come down to suspend and resume events, and that whatever 
tool you're using would need to pass those on, and your app itself should do 
the right thing with those events.

In SJ's presentation one of the third party people mentioned how they 
completely added in the multitasking changes in a day. That tells you that 
there are changes to be made, and the OS is not going suspend and resume every 
app ever written.

It is quite possible that anything that is XCode based might start to behave 
properly if just recompiled under the SDK4, and that would indeed show an 
advantage of having used XCode. But what Apple could do is insist that all apps 
honor the multitasking rules, and not worry about the tool that was used. Then 
people like Adobe and RunRev would just need to fix their tools to make sure 
that built apps do the multitasking correctly.


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


Re: What does the 4.0 iPhone SDK mean for revMobile?

2010-04-09 Thread René Micout

Le 10 avr. 2010 à 05:57, Colin Holgate a écrit :
> 
> It is quite possible that anything that is XCode based might start to behave 
> properly if just recompiled under the SDK4, and that would indeed show an 
> advantage of having used XCode. But what Apple could do is insist that all 
> apps honor the multitasking rules, and not worry about the tool that was 
> used. Then people like Adobe and RunRev would just need to fix their tools to 
> make sure that built apps do the multitasking correctly.

YES ! I think this...
I think also that is very difficult to understand a juridical § with technical 
or commercial point of vue !!
René___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Implementing the Mac "Quick Look" type of window

2010-04-09 Thread René Micout
Thank you Devin ! Very useful !
René

Le 9 avr. 2010 à 19:15, Devin Asay a écrit :

> 
> On Apr 9, 2010, at 11:07 AM, Peter Haworth wrote:
> 
>> Not sure the correct term for this but I'm looking for a way to to  
>> implement windows that look like the "Quick Look" windows on a Mac.  
>> They "explode" out from the document icon popup menu that you select  
>> the Quick Look function  from.  They have a semi-transparent border  
>> around the document they display and a close button at the top left  
>> and a vertical scroll bar.
>> 
>> I thought maybe the opaque property of a card might be a starting  
>> point but it doesn't seem to affect the appearance of the card at  
>> all.  Also tried playing around with the various options of the  
>> Blending Properties but they seem to affect the appearance of objects  
>> on the card rather than the card itself.
>> 
>> Thanks for any pointers as to how to do this,
> 
> Actually, Pete, if you are on a Mac, 10.5 or higher, you can can access the 
> QuickLook capability directly. I wrote this script after a discussion on this 
> list a few months back. Thanks to Bernd Niggeman and Jim Sims for the ideas:
> 
> on mouseUp
>  answer file "please choose ..."
>  if it is empty then exit mouseUp
>  put it into theFile
>  put apostrophe (theFile) into theFile
>  --put "qlmanage -t " & "-s 900 " & theFile into tcmd -- apparently sets it 
> to max orig size, white window
>  -- put "qlmanage -t " & "-f 5 " & theFile into tcmd  apparently sets it 
> to max orig size, white window
>  put "qlmanage -p " & theFile into tcmd -- shows it in a black window
>  get shell  (tCmd)
>  if the result is not empty then put the result
> end mouseUp
> 
> function apostrophe what
>  return "'" & what & "'"
> end apostrophe
> 
> Regards,
> 
> Devin
> 
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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