[futurebasic] Re: [FB] Line Input

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2016 : Group Archive : Group : All Groups

From: Bernie <bernie.fblist@...>
Date: Sun, 6 Nov 2016 20:52:13 +0000
I assumed you meant the simplicity of handling the task completed/output/error from within the method itself rather than in an FB function, as in your most recent example.


> On 6 Nov 2016, at 20:47, SVanVoorst via futurebasic <futurebasic@...> wrote:
> 
> > So do I, but I suspect the OP feels more comfortable working with FB functions rather than Obj-C methods.
> 
> I don't understand this argument.  The non-callback method uses a local fn also.  There is objc code in both methods.  The user likely won't write any objc code anyway and will come to this list looking for help, where it will be provided.
> 
> local fn BackgroundTaskRun
> '~'1
> BeginCCode
> BackgroundTask *bkgrndTask = [[[BackgroundTask alloc]init] autorelease];
> //[bkgrndTask runCommand:@"log show --predicate 'subsystem == \"com.apple.TimeMachine\"' --info | grep 'upd: (' | cut -c 1-19,140-999"];
> [bkgrndTask runCommand:@"ls"];
> EndC
> end fn
> 
> called by fn BackgroundTaskRun
> 
> 
> -----Original Message-----
> From: Bernie <bernie.fblist@...>
> To: futurebasic <futurebasic@...>; SVanVoorst <svanvoorst@...>
> Sent: Sun, Nov 6, 2016 1:48 pm
> Subject: Re: [FB] Line Input
> 
> 
> Steve wrote:
> 
> > Lo and behold, we don't even need the cocoa loop. I still like the original due to its simplicity. 
> 
> So do I, but I suspect the OP feels more comfortable working with FB functions rather than Obj-C methods.
> 
> > Thanks so much for the contributions. Maybe you won't ever have to worry about callbacks again ;-)
> 
> I never worry about callbacks ;-)
> 
> 
> 
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@... To access the list archives, go to: http://freegroups.net/groups/futurebasic/
> 
>