Page 1 of 1

Can the FFI be used with methods that return type NSArray?

Posted: Wed Feb 05, 2020 5:18 pm
by Simon Knight
I would like to wrap foreign handlers that return large amounts of data in an array. I can not find any documentation so I just want to confirm that it is not possible.

Re: Can the FFI be used with methods that return type NSArray?

Posted: Wed Feb 05, 2020 5:21 pm
by trevordevore
Yes, they can. Here are examples from one of my GitHub repos:

https://github.com/trevordevore/lc-maco ... _q=nsarray

Re: Can the FFI be used with methods that return type NSArray?

Posted: Thu Feb 06, 2020 10:25 am
by Simon Knight
Thanks again Trevor, I can see that programming using foreign handlers requires a different way of thinking. It feels a little remote as if I'm wearing thick rubber gloves while playing cards.

Re: Can the FFI be used with methods that return type NSArray?

Posted: Thu Feb 06, 2020 1:29 pm
by trevordevore
That is an apt description :-)