Thread overview | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
November 11, 2015 OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Hello, I'm working on native Cocoa backend for DlangUI GUI library under OSX. Is there any ready to use bindings for easy accessing Cocoa API? Probably, there is some HelloWorld program which creates window and draws something? Best regards, Vadim |
November 11, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | V Wed, 11 Nov 2015 06:17:00 +0000 Vadim Lopatin via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> napsáno: > Hello, > > I'm working on native Cocoa backend for DlangUI GUI library under > OSX. > Is there any ready to use bindings for easy accessing Cocoa API? > Probably, there is some HelloWorld program which creates window > and draws something? > > > Best regards, > Vadim I find only this one: http://code.dlang.org/packages/derelict-cocoa |
November 11, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | On Wednesday, 11 November 2015 at 09:29:47 UTC, Daniel Kozak wrote:
> V Wed, 11 Nov 2015 06:17:00 +0000
> Vadim Lopatin via Digitalmars-d-learn
> <digitalmars-d-learn@puremagic.com> napsáno:
>
>> Hello,
>>
>> I'm working on native Cocoa backend for DlangUI GUI library under
>> OSX.
>> Is there any ready to use bindings for easy accessing Cocoa API?
>> Probably, there is some HelloWorld program which creates window
>> and draws something?
>>
>>
>> Best regards,
>> Vadim
>
> I find only this one: http://code.dlang.org/packages/derelict-cocoa
Me too.
It looks promising.
I'll try to use it.
|
November 11, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | On 2015-11-11 10:29, Daniel Kozak via Digitalmars-d-learn wrote: > I find only this one: http://code.dlang.org/packages/derelict-cocoa I would recommend creating new bindings which use the new Objective-C interoperability feature that was added in the latest release (2.069.0). -- /Jacob Carlborg |
November 11, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On 2015-11-11 17:02, Jacob Carlborg wrote: > I would recommend creating new bindings which use the new Objective-C > interoperability feature that was added in the latest release (2.069.0). You could use DStep [1] to generate the bindings. It will generate bindings which are not completely compatible with what the compiler can handle. But it can be used as a base. [1] https://github.com/jacob-carlborg/dstep -- /Jacob Carlborg |
November 11, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | On 2015-11-11 10:29, Daniel Kozak via Digitalmars-d-learn wrote: > I find only this one: http://code.dlang.org/packages/derelict-cocoa Also, there's no point in complicate the bindings by using function pointers like this. -- /Jacob Carlborg |
November 12, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Wednesday, 11 November 2015 at 16:04:44 UTC, Jacob Carlborg wrote:
> On 2015-11-11 17:02, Jacob Carlborg wrote:
>
>> I would recommend creating new bindings which use the new Objective-C
>> interoperability feature that was added in the latest release (2.069.0).
>
> You could use DStep [1] to generate the bindings. It will generate bindings which are not completely compatible with what the compiler can handle. But it can be used as a base.
>
> [1] https://github.com/jacob-carlborg/dstep
That's interesting. Let me try.
Thank you!
|
November 12, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Wednesday, 11 November 2015 at 16:04:44 UTC, Jacob Carlborg wrote:
> On 2015-11-11 17:02, Jacob Carlborg wrote:
>
>> I would recommend creating new bindings which use the new Objective-C
>> interoperability feature that was added in the latest release (2.069.0).
>
> You could use DStep [1] to generate the bindings. It will generate bindings which are not completely compatible with what the compiler can handle. But it can be used as a base.
>
> [1] https://github.com/jacob-carlborg/dstep
Aren't there any ready set of translated and post-processed files for main OSX foundations in some repository? Could you point at it?
|
November 12, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Thursday, 12 November 2015 at 05:50:09 UTC, Vadim Lopatin wrote:
> On Wednesday, 11 November 2015 at 16:04:44 UTC, Jacob Carlborg wrote:
>> On 2015-11-11 17:02, Jacob Carlborg wrote:
>>
>>> I would recommend creating new bindings which use the new Objective-C
>>> interoperability feature that was added in the latest release (2.069.0).
>>
>> You could use DStep [1] to generate the bindings. It will generate bindings which are not completely compatible with what the compiler can handle. But it can be used as a base.
>>
>> [1] https://github.com/jacob-carlborg/dstep
>
> Aren't there any ready set of translated and post-processed files for main OSX foundations in some repository? Could you point at it?
That's doubtful. OS X interoperability is pretty new. If anyone has done any bindings like what you want I don't think they've announced it.
|
November 12, 2015 Re: OSX Foundation framework D binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On 2015-11-12 06:50, Vadim Lopatin wrote: > Aren't there any ready set of translated and post-processed files for > main OSX foundations in some repository? Could you point at it? I have these 6 years old bindings [1] which uses an old Objective-C bridge. Perhaps it's possible to do some search-and-replace to convert the bindings to use the new Objective-C support. There's the Dive Framework [2] as well. It uses a fork of the compiler which has all the Objective-C interoperability features that the upstream compiler will eventually have. [1] http://dsource.org/projects/dstep/browser/dstep [2] https://github.com/DiveFramework/DiveFramework -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation