f-script-talk Mailing List for F-Script (Page 11)
Brought to you by:
pmougin
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
(4) |
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(8) |
May
(12) |
Jun
(3) |
Jul
(5) |
Aug
(4) |
Sep
(1) |
Oct
(1) |
Nov
(2) |
Dec
(4) |
2003 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(14) |
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
(2) |
Nov
(2) |
Dec
|
2004 |
Jan
(3) |
Feb
(9) |
Mar
(1) |
Apr
(6) |
May
|
Jun
|
Jul
(3) |
Aug
(3) |
Sep
(11) |
Oct
(29) |
Nov
|
Dec
(3) |
2005 |
Jan
(8) |
Feb
(12) |
Mar
|
Apr
(1) |
May
(31) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(2) |
2006 |
Jan
(13) |
Feb
(1) |
Mar
(5) |
Apr
(3) |
May
(1) |
Jun
(13) |
Jul
(2) |
Aug
(22) |
Sep
(15) |
Oct
(1) |
Nov
(1) |
Dec
|
2007 |
Jan
(7) |
Feb
(3) |
Mar
(2) |
Apr
(5) |
May
|
Jun
(6) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
(3) |
Nov
(12) |
Dec
(5) |
2008 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
(2) |
May
(4) |
Jun
(31) |
Jul
(9) |
Aug
(10) |
Sep
(3) |
Oct
(4) |
Nov
|
Dec
|
2009 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Philippe M. <pm...@ac...> - 2005-02-03 13:19:16
|
Chances are that an error message is logged when it crash. You can look=20= at this by opening the Mac OS X Console=20 (/Applications/Utilities/Console.app) Do you see an error message ? Philippe Le 3 f=E9vr. 05, =E0 05:29, John Hillhouse a =E9crit : > Greetings, > > I've tried to run fscript without success. > I've downloaded the file and untared it. > > When I try to launch it just bounces a couple of times and quits. > > I'm running 10.2.8 with a fairly new installation. > > Any Suggestions? > > thanks > > John > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive = Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > |
From: Grigory E. <Gri...@ar...> - 2005-02-03 12:37:51
|
Hello John, On Thu Feb 03 2005 at 07:29, John Hillhouse <joh...@ve...> wrote: > I've tried to run fscript without success. > I've downloaded the file and untared it. > > When I try to launch it just bounces a couple of times and quits. > > I'm running 10.2.8 with a fairly new installation. > > Any Suggestions? Well, I'm not sure that's the case, but anyway.. If you use Stuffit Expander for untarring, check that that's a recent version (e.g. 8.x) - old versions had problems with long file names. Regards, Grigory |
From: John H. <joh...@ve...> - 2005-02-03 04:30:01
|
Greetings, I've tried to run fscript without success. I've downloaded the file and untared it. When I try to launch it just bounces a couple of times and quits. I'm running 10.2.8 with a fairly new installation. Any Suggestions? thanks John |
From: Philippe M. <pm...@ac...> - 2005-01-27 14:51:54
|
The release candidate announced here a few days ago has been released as "F-Script 1.2.8". Release notes are available on-line at http://www.fscript.org/releaseNotes/ You can download F-Script 1.2.8 from http://www.fscript.org/download/download.htm I'm extremely pleased by what is achieved in this version. A big thank you to all those who have provided feedback, encouragements, technical help, financial support and code contributions. Enjoy this new version! Philippe Mougin |
From: Philippe M. <pm...@ac...> - 2005-01-24 21:44:48
|
F-Script 1.2.8 release candidate is now available for download and test. Binaries + documentation -> http://www.fscript.org/download/FScriptBin-20050125.tar.gz Sources -> http://www.fscript.org/download/FScriptSources-20050125.tar.gz This version comes with many improvements, described in the included release notes. I plan to publicly announce the release this week if no major problems are found in this candidate version. So, please, test and report bugs ASAP. Best, Philippe Mougin |
From: Alun ap R. <al...@ma...> - 2005-01-11 12:55:29
|
(sorry moderator, I keep forgetting which email address I used to register!) Philippe wrote: > Interesting to know that your are an ex-Object People, which at some > point was sort of a mythical company in the object-oriented world. I > remember I was kind of fascinated by this company and its Toplink > product. Yes, it was a great company to work for, unique in my experience. For those who don't know, it was sold to BEA with the idea that it would be the training arm of that company. John Pugh could see that Smalltalk's days as a major money earner were numbered, I guess. However, BEA was a very different company to work for. They immediately stopped all Smalltalk projects (I was doing development for a health insurance company at the time in the middle east) and stopped us teaching any Smalltalk courses. Everything had to be Java and using their products. TOPLink was sold off to a separate subsidiary, which then went bust and TOPLink was finally acquired by Oracle. I left about 4 months after the takeover, and I think everyone in the UK left within a year, ditto in Canada and no doubt elsewhere. With Bloomsbury also closing up, it became hard to get training for Smalltalk, certainly in the UK, and I think that may have hastened the drop in number of companies using Smalltalk, along with IBM becoming luke-warm about their VisualAge product. However, once you have spent time with Smalltalk it is hard to become enthused about anything as far below it as Java (though Ruby is really nice), so it wouldn't surprise me if some other ex-TOP people were using F-Script. I have only been using it for about 6 weeks, and it is noticeable how I now look for any chance to drop into it. The main reason it remains as short snippets at the moment (although those snippets do a lot of work) is because it would be hard to debug larger pieces of code. Harder to read, too, as I can't split the code up into lines very easily, either embedded in ObjC code or in the interpreter view. regards, Alun ap Rhisiart |
From: Philippe M. <pm...@ac...> - 2005-01-10 16:16:33
|
Hi Alun, Thanks a lot for sharing with us your experience with F-Script. I'm using more and more the same embedding approach in the implementation of F-Script itself when I have array-oriented code to write and F-Script allows for easier and more readable implementation. Interesting to know that your are an ex-Object People, which at some point was sort of a mythical company in the object-oriented world. I remember I was kind of fascinated by this company and its Toplink product. Now, addressing you problem with FSBoolean, the approach described by Ken is the right one. You can use it with a category, as shown, or, of course, directly in your methods. For example: - (BOOL)hasProposalForSite:(Site *)s { return [[[@"[:proposals :s| proposals site = s \\ #|]" asBlock] value: proposals value:s] isEqual:[FSBoolean fsTrue]]; } Best, Philippe Mougin |
From: Alun ap R. <al...@ma...> - 2005-01-10 12:08:26
|
(oops, sent this reply from the wrong email address) Tim, yes I downloaded Ambrai when the first beta was announced and have corresponded with them. Some of the team there are ex-Object People, as I am. This could be great, but it is still early days yet. Thanks, Ken, that did the trick. I always forget about categories. regards, Alun |
From: Ken F. <ken...@gm...> - 2005-01-09 18:05:29
|
On Sun, 9 Jan 2005 17:00:55 +0000, Alun ap Rhisiart <al...@ma...> wrote: > It appears that the block returns a pointer, which is then always caste > to YES. Unlike NSValue, I don't see a way of getting the plain C value > of of this return value. Good point! Perhaps Philippe will add a mechanism? But you don't need to wait, because you can use a category on FSBoolean. @implementation FSBoolean (ARBoolValue) - (BOOL)arBoolValue // prefix to avoid future conflict { return [self isEqual:[FSBoolean fsTrue]]; } @end and in your Tender class, - (BOOL)hasProposalForSite:(Site *)s { return [[[@"[:proposals :s| proposals site = s \\ #|]" asBlock] value: proposals value:s] arBoolValue]; } -Ken |
From: Tim M. <Ti...@Mo...> - 2005-01-09 17:11:31
|
On Jan 9, 2005, at 12:00 PM, Alun ap Rhisiart wrote: > I always thought it sad and ironic that the smalltalk group at Xerox > PARC did so much to influence the design of the Mac, and yet we don't > have a really good smalltalk implementation on it that I can use. We > did have SmalltalkAgents, of which I was an early adopter and did some > work on the text processing part of the frameworks, but that ceased. > Then Digitalk was killed off, and IBM never released VisualAge for the > Mac. Squeak is technically great, but I could never give apps with the > weird interface to discriminating Mac users, and VisualWorks also > looks quirky on the Mac. So grateful thanks to Philippe for giving us > F-Script. I would like to get to the point of doing more of the app in > F-Script, rather like I can with Python via the pyobjc bridge. > Just to go off on a bit of a tangent, we also have Ambrai now, which looks promising. http://www.ambrai.com/ It has a different purpose than F-Script, but sounds like something you'd be interested in...for writing entire apps instead of scripting ObjC. -- Tim Moore |
From: Alun ap R. <al...@ma...> - 2005-01-09 17:01:06
|
Hi, As this is my first post to this group I will say something about my background and what I am using F-Script for. I have been using F-Script for my latest project and am very impressed by it. I have been programming smalltalk since 1989 (and Macintoshes since 1986), and it is great to see these two things come together so well. I always thought it sad and ironic that the smalltalk group at Xerox PARC did so much to influence the design of the Mac, and yet we don't have a really good smalltalk implementation on it that I can use. We did have SmalltalkAgents, of which I was an early adopter and did some work on the text processing part of the frameworks, but that ceased. Then Digitalk was killed off, and IBM never released VisualAge for the Mac. Squeak is technically great, but I could never give apps with the weird interface to discriminating Mac users, and VisualWorks also looks quirky on the Mac. So grateful thanks to Philippe for giving us F-Script. I would like to get to the point of doing more of the app in F-Script, rather like I can with Python via the pyobjc bridge. I am using F-Script for a number of methods that would be time-consuming or tricky to write in Objective-C, and also for debugging (using the palettes to provide the menu with object inspector and interpreter). I plan also to provide some sort of plugin or scripting ability via F-Script. A great deficiency of gdb is that it is hard to look at variables, particularly arrays, which means you can't follow a trail of object references to get to something you want to examine, unlike the F-Script object inspector. Just out of interest, here are a couple of examples of how I am using it, the first couple of methods generate an array of values for displaying in a graph: /*! Returns an array of points (0=client, 1=developer) where x=trialGSR and y=abr. For efficiency (as this is likely to be called from a loop) does not set GSR back to the original project setting, as this would cause all figures to be recalculated twice each time through the loop */ - (NSArray *)abrForGSR:(float)trialGSR { [self setGrossSalesRevenues:trialGSR]; NSPoint clientPoint = NSMakePoint(trialGSR,[self clientABRValue]); NSPoint devPoint = NSMakePoint(trialGSR, [self developerABRValue]); return [NSArray arrayWithObjects:[NSValue valueWithPoint:clientPoint], [NSValue valueWithPoint:devPoint],nil]; } /*! Returns an array of NSPoints where x varies from -20% to +20% of current GSR and y is corresponding ABR. Resets GSR to the original value when it has finished. */ - (NSArray *)abrDisplayValues { if (!calculateDisplayValuesBlock) calculateDisplayValuesBlock = [[@"[:project | | gsr | gsr := project grossSalesRevenues. project abrForGSR: @ 41 iota + 80 / 100 * gsr ]" asBlock]retain]; float currentGSR = grossSalesRevenues; NSArray *ary = [calculateDisplayValuesBlock value:self]; [self setGrossSalesRevenues:currentGSR]; return ary; } The second example uses an interpreter to update values in bands when any of the previous band values have changed. There isn't anything that can realistically go wrong with these calculations, so I don't check return values: /*! Check the allocations. If they can be satisfied with within the new startValue, ask each to take what it wants and set depth and end value to match. If they cannot be satisfied, work out amounts to give them proportionally and set depth to startValue making endValue zero targetDepth should always be aligned with sum of allocation targets, so we can use that initially */ - (void)recalculateActualDepth { if (targetDepth <= startValue) { // Okay, give the allocations what they want, set target depth to their sum execResult = [interpreter execute:@"myBand allocations setBandActualAmount: myBand allocations bandTargetAmount"]; [self setActualDepth:targetDepth]; } else { // restrict allocation actual amount to proportion of amount available (startValue) execResult = [interpreter execute:@"myBand allocations setBandActualAmount: myBand allocations bandTargetAmount / (myBand allocations bandTargetAmount \\ #+) * myBand startValue"]; [self setActualDepth:startValue]; } } I show this code because Philippe suggested it would be interesting to see what different people are using F-Script for. Now to my problem. I have a class called Tender, which contains an array of Project proposals, one per Site. A Tender can have no more than one proposal per site, so I need to filter the sites shown in a popup menu when new proposals are created. Tenders also sum the values of their proposals for display in an outline view. eg - (float)grossSalesRevenues { if ([proposals count] > 0) return [[[@"[:proposals | proposals grossSalesRevenues \\ #+]" asBlock]value: proposals] floatValue]; else return 0.0; } grossSalesRevenues on a Project object is simply a float getter. This works fine, but the next does not: - (BOOL)hasProposalForSite:(Site *)s { return [[@"[:proposals :s| proposals site = s \\ #|]" asBlock] value: proposals value:s]; } Now if I open an interpreter and assign t to the tender containing this method and one proposal (for site s1), and I have two sites, s1 and s2, then t proposals site = s1 \ #| => true (correct) t proposals site = s2 \ #| => false (correct) but if I call the method above t hasProposalForSite: s1 => true (correct) t hasProposalForSite: s2 => true (wrong) It appears that the block returns a pointer, which is then always caste to YES. Unlike NSValue, I don't see a way of getting the plain C value of of this return value. |
From: Stephen C. G. <squ...@ma...> - 2004-12-16 00:07:06
|
Or... with the white text turned black... > {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} error: arrays must be of same size > {1 , 2 } @+@{1, 2, 3,4} error: arrays must be of same size > {1 , 2, 3, 4, 5, 6} at: {true, false} error: indexing with an array of booleans of bad size > {1 , 2} at: {true, false, true} error: indexing with an array of booleans of bad size > --Steve On Dec 15, 2004, at 7:03 PM, Stephen C. Gilardi wrote: > I ran your tests using fscript 1.2.7 and got these results: > > > {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} > > error: arrays must be of same size > > > {1 , 2 } @+@{1, 2, 3,4} > > error: arrays must be of same size > > > {1 , 2, 3, 4, 5, 6} at: {true, false} > > error: indexing with an array of booleans of bad size > > > {1 , 2} at: {true, false, true} > > error: indexing with an array of booleans of bad size > > > > > Good luck with your presentation. > > --Steve > > On Dec 15, 2004, at 6:29 AM, Noa Grinblat wrote: > >> Hi . >> I am taking a course, in which I will perform a presentation about >> the OOPAL article and fscript language. Unfortunately I have no >> access to a computer running Mac OS and so I can't try to work with >> fscript on my own. I have a couple of questions, that were really >> easy to solve if this wasn't the situation, that I hoped someone here >> could help me answer. What would happen in the following cases, where >> we have 2 arrays, with different sizes: >> 1. {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} >> 2. {1 , 2 } @+@{1, 2, 3,4} >> 3. {1 , 2, 3, 4, 5, 6} at: {true, false} >> 4. {1 , 2} at: {true, false, true} >> >> Thanks! |
From: Stephen C. G. <squ...@ma...> - 2004-12-16 00:03:28
|
I ran your tests using fscript 1.2.7 and got these results: > {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} error: arrays must be of same size > {1 , 2 } @+@{1, 2, 3,4} error: arrays must be of same size > {1 , 2, 3, 4, 5, 6} at: {true, false} error: indexing with an array of booleans of bad size > {1 , 2} at: {true, false, true} error: indexing with an array of booleans of bad size > Good luck with your presentation. --Steve On Dec 15, 2004, at 6:29 AM, Noa Grinblat wrote: > Hi . > I am taking a course, in which I will perform a presentation about the > OOPAL article and fscript language. Unfortunately I have no access to > a computer running Mac OS and so I can't try to work with fscript on > my own. I have a couple of questions, that were really easy to solve > if this wasn't the situation, that I hoped someone here could help me > answer. What would happen in the following cases, where we have 2 > arrays, with different sizes: > 1. {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} > 2. {1 , 2 } @+@{1, 2, 3,4} > 3. {1 , 2, 3, 4, 5, 6} at: {true, false} > 4. {1 , 2} at: {true, false, true} > > Thanks! |
From: Noa G. <no...@ly...> - 2004-12-15 11:29:18
|
Hi . I am taking a course, in which I will perform a presentation about the OOPA= L article and fscript language. Unfortunately I have no access to a compute= r running Mac OS and so I can't try to work with fscript on my own. I have = a couple of questions, that were really easy to solve if this wasn't the si= tuation, that I hoped someone here could help me answer. What would happen = in the following cases, where we have 2 arrays, with different sizes: 1. {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} 2. {1 , 2 } @+@{1, 2, 3,4} 3. {1 , 2, 3, 4, 5, 6} at: {true, false} 4. {1 , 2} at: {true, false, true} Thanks! --=20 _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.as= p?SRC=3Dlycos10 |
From: Philippe M. <phi...@wa...> - 2004-10-25 23:07:52
|
As John wrote, you are hit by a know bug in F-Script 1.2.7. To solve the problem without having to rebuild your nib from scratch you can do the following: 1) Get IB to open your nib. To do that, you can revert to F-Script 1.2.6 (removing the F-Script palette from the list of default palette that IB loads at startup will probably work also). 2) Configure IB to use XML when archiving objects in nibs. 3) Save the nib file. 4) open the nib package (your nib file is actually a directory containing other files, you can open the nib package with the Finder using the "show package content" (or something equivalent) menu item. 4) In the package you shall see among other things a file named "keyedobjects.nib" or something like that. 5) Open this file with a text editor. At this point you should see some XML. Replace all occurrences of "FSContext" by "NSObject". You nib file should now work fine with F-Script 1.2.7 Best, Philippe Mougin > Message du 25/10/04 20:56 > De : "John Anderson" <jan...@wi...> > A : f-s...@li... > Copie à : > Objet : Re: [F-Script-talk] Updated to 1.2.7 and can't load old nibs > > This appears to be exactly the same problem affecting FSA (see archive > for more details). Apparently, the FSContext class not longer exists. > The solution was to rebuild the NIBs from scratch in FSA case. You > might want to first try removing the reference to FSContext from your > NIB directly. Unfortunately, I do not know how FSContext was actually > referenced in NIBs. > > On Oct 25, 2004, at 2:23 AM, Jay Lieske wrote: > > > F-Scripters-- > > > > I had built an application in Xcode that linked to FScript.framework > > version 1.2.6 and had a nib using FSInterpreterView. Now when I run > > the app, I get this log error: > > > > class error for 'FSContext': class not loaded > > > > I get the same error message when I try to open my nib in Interface > > Builder. IB won't open my nib at all now. > > > > Is the archive format for F-Script 1.2.7 incompatible with nibs > > created in 1.2.6? (I read in the release notes that the Block archive > > format for 1.2.7 wasn't readable in earlier versions; my problem seems > > to be the reverse.) > > > > Should I revert to FScript.framework 1.2.6 momentarily to take the > > FSInterpreterView out of my nib? > > > > Thanks, > > --jay > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on > > ITManagersJournal > > Use IT products in your business? Tell us what you think of them. Give > > us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > > more > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > F-Script-talk mailing list > > F-S...@li... > > https://lists.sourceforge.net/lists/listinfo/f-script-talk > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > |
From: John A. <jan...@wi...> - 2004-10-25 18:35:43
|
This appears to be exactly the same problem affecting FSA (see archive for more details). Apparently, the FSContext class not longer exists. The solution was to rebuild the NIBs from scratch in FSA case. You might want to first try removing the reference to FSContext from your NIB directly. Unfortunately, I do not know how FSContext was actually referenced in NIBs. On Oct 25, 2004, at 2:23 AM, Jay Lieske wrote: > F-Scripters-- > > I had built an application in Xcode that linked to FScript.framework > version 1.2.6 and had a nib using FSInterpreterView. Now when I run > the app, I get this log error: > > class error for 'FSContext': class not loaded > > I get the same error message when I try to open my nib in Interface > Builder. IB won't open my nib at all now. > > Is the archive format for F-Script 1.2.7 incompatible with nibs > created in 1.2.6? (I read in the release notes that the Block archive > format for 1.2.7 wasn't readable in earlier versions; my problem seems > to be the reverse.) > > Should I revert to FScript.framework 1.2.6 momentarily to take the > FSInterpreterView out of my nib? > > Thanks, > --jay > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give > us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > |
From: Jay L. <ja...@jl...> - 2004-10-25 06:22:57
|
F-Scripters-- I had built an application in Xcode that linked to FScript.framework version 1.2.6 and had a nib using FSInterpreterView. Now when I run the app, I get this log error: class error for 'FSContext': class not loaded I get the same error message when I try to open my nib in Interface Builder. IB won't open my nib at all now. Is the archive format for F-Script 1.2.7 incompatible with nibs created in 1.2.6? (I read in the release notes that the Block archive format for 1.2.7 wasn't readable in earlier versions; my problem seems to be the reverse.) Should I revert to FScript.framework 1.2.6 momentarily to take the FSInterpreterView out of my nib? Thanks, --jay |
From: John A. <jan...@wi...> - 2004-10-23 17:28:50
|
I am not sure everbody knows about this yet, but something like the recently released PreFab UI Browser would make an excellent addition to F-Script Anywhere: http://www.prefab.com/uibrowser/index.html This is just like the existing object browser (but for AppleScript) and appears to perform much better than the existing FSA functionality for accessing GUI elements. It seems to operate by taking advantage of Panther's new Universal Access features. Is anybody else thinking about bring this to F-Script? |
From: Jonathan 'W. R. <ni...@re...> - 2004-10-21 17:53:43
|
Philippe Mougin, pm...@ac..., wrote: >Currently F-Script does not support calling a method with variable >number of arguments. Thanks for the quick response. That's what I figured, since implementing it would be a royal pain. | Jonathan 'Wolf' Rentzsch http://rentzsch.com | Red Shed Software http://redshed.net | "better" necessarily means "different" |
From: Philippe M. <pm...@ac...> - 2004-10-21 17:37:56
|
Hi Jonathan, Currently F-Script does not support calling a method with variable=20 number of arguments. Best, Philippe Mougin Le 21 oct. 04, =E0 18:39, Jonathan 'Wolf' Rentzsch a =E9crit : > Greetings all, > > How do I call a method that takes variable arguments (like > stringWithFormat:) from F-Script? For example: > >> now :=3D NSCalendarDate date > >> now > 2004-10-21 11:36:19 -0500 > >> nowString :=3D NSString stringWithString:(now description) > >> nowString > '2004-10-21 11:36:19 -0500' > >> nowString2 :=3D NSString stringWithFormat:'%@', now > > end of command expected , character 44 > >> nowString2 :=3D NSString stringWithFormat:'%@' now > > error: an instance of NSCFString does not respond to "now" > > | Jonathan 'Wolf' Rentzsch http://rentzsch.com > | Red Shed Software http://redshed.net > | "better" necessarily means "different" > |
From: Jonathan 'W. R. <ni...@re...> - 2004-10-21 16:39:07
|
Greetings all, How do I call a method that takes variable arguments (like stringWithFormat:) from F-Script? For example: > now := NSCalendarDate date > now 2004-10-21 11:36:19 -0500 > nowString := NSString stringWithString:(now description) > nowString '2004-10-21 11:36:19 -0500' > nowString2 := NSString stringWithFormat:'%@', now end of command expected , character 44 > nowString2 := NSString stringWithFormat:'%@' now error: an instance of NSCFString does not respond to "now" | Jonathan 'Wolf' Rentzsch http://rentzsch.com | Red Shed Software http://redshed.net | "better" necessarily means "different" |
From: Ken F. <ken...@gm...> - 2004-10-20 01:25:27
|
On Mon, 18 Oct 2004 19:23:16 +0200, Philippe Mougin <pm...@ac...> wrote= : >=20 > Le 18 oct. 04, =E0 16:20, jcb a =E9crit : >=20 > > I am really enjoying the latest F-Script release. > > > > One curiosity remains: why have you disabled or trapped command-W for > > closing windows in F-Script.app? I end up with many, many inspectors > > open and I have to find the close box one by one... >=20 > I think this is not enabled by default in Cocoa apps, and I never > thought about it. But now that I'm aware of this, I will probably > enable it in the next version. In the meantime, it's easy to add yourself, jc. =20 Open up F-Script.app/Contents/Resources/English.lproj/fs.nib. Add a "Close" menu item with shortcut cmd-W to your favorite menu (probably Workspace), and set the item's target to First Responder with action performClose:. That'll do it, no recompile needed. -Ken |
From: Philippe M. <pm...@ac...> - 2004-10-18 17:22:01
|
Le 18 oct. 04, =E0 16:20, jcb a =E9crit : > I am really enjoying the latest F-Script release. > > One curiosity remains: why have you disabled or trapped command-W for=20= > closing windows in F-Script.app? I end up with many, many inspectors=20= > open and I have to find the close box one by one... I think this is not enabled by default in Cocoa apps, and I never=20 thought about it. But now that I'm aware of this, I will probably=20 enable it in the next version. > Okay, one other curiosity remains: When I crash F-script...why do I=20 > have to then force quit to actually remove the app? I don't know. It might depend on the kind of crash... but actually I=20 don't know. Philippe Mougin= |
From: jcb <jc...@fa...> - 2004-10-18 14:21:19
|
I am really enjoying the latest F-Script release. One curiosity remains: why have you disabled or trapped command-W for closing windows in F-Script.app? I end up with many, many inspectors open and I have to find the close box one by one... Okay, one other curiosity remains: When I crash F-script...why do I have to then force quit to actually remove the app? --jcburns |
From: Philippe M. <pm...@ac...> - 2004-10-09 23:26:53
|
Philippe, The Gnuplot class is not yet public and is still under development. You=20= probably won't be able to do any interesting thing with it in its=20 current state... If you want to experiment with it you'll need to have=20= gnuplot-3.7.1d for Mac installed on your computer. Then you can call=20 the plot: method with an array of numbers as argument. For instance,=20 "Gnuplot plot:(100 iota / 10) sin" will give you a nice sinusoid. Best, Philippe Mougin Le 9 oct. 04, =E0 17:23, Philippe de Rochambeau a =E9crit : > Hello, > > does anyone know how to use the GNUPlot object and has anyone tried=20 > doing OpenGL in F-Script? > > The GNPlot object has a plot: method, but none of the arguments I have=20= > tried work: > > > - plot: 4 > > - plot: x > > - plot: x**2 > > - plot: x^2 > > etc. > > Philippe > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on=20 > ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give=20= > us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out=20= > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > F-Script-talk mailing list > F-S...@li... > https://lists.sourceforge.net/lists/listinfo/f-script-talk > |