Can the FFI be used with methods that return type NSArray?
-
- Posts: 854
- Joined: Wed Nov 04, 2009 11:41 am
- Location: Gunthorpe, North Lincs, UK
Can the FFI be used with methods that return type NSArray?
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.
best wishes
Skids
Skids
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Location: Overland Park, Kansas
- Contact:
Re: Can the FFI be used with methods that return type NSArray?
Yes, they can. Here are examples from one of my GitHub repos:
https://github.com/trevordevore/lc-maco ... _q=nsarray
https://github.com/trevordevore/lc-maco ... _q=nsarray
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
-
- Posts: 854
- Joined: Wed Nov 04, 2009 11:41 am
- Location: Gunthorpe, North Lincs, UK
Re: Can the FFI be used with methods that return type NSArray?
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.
best wishes
Skids
Skids
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Location: Overland Park, Kansas
- Contact:
Re: Can the FFI be used with methods that return type NSArray?
That is an apt description
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder