I would expect to be using an ObjcObject instead of an
NSObject here,
but this does not compile. The signature of the target action
seems to
be irrelevant, it may have no or more parameters. I guess this
is just
ok and the expected behavior.
Hmm, that sounds strange. What exact errors do yo
Ok, some more info:
I changed the mapping in tableview.d to:
void setDoubleAction(void __selector(ObjcObject))
[setDoubleAction:] ;
This should be the way to do it. Now in the implementation of the
action:
void doubleClickAction(ObjcObject sender) {
NSLog("double click action") ;
what is funky in this context (see above): even when using
ObjcObject in both the mapping and the action method, the test
if (sender is demoTableView) {
//
}
does not fail in the action, only a cast to a NSTableView object
fails. Of course, in this setting it's not really a problem, I
can wo
I found build tool named dco.
Could you explain were it can be helpful?
will it work for 64bit?
On Saturday, 18 October 2014 at 14:39:05 UTC, FrankLike wrote:
There were 15 forks of DFL on github (some of them working
fine with 2.066), you made a 16nth, with another name. ;)
What's the point?
Btw, your version (just like most others) contains bugs
causing the
On 2014-11-04 09:07:08 +, "Christian Schneider"
said:
Ok, some more info:
I changed the mapping in tableview.d to:
void setDoubleAction(void __selector(ObjcObject))
[setDoubleAction:] ;
That's indeed the best way to do it.
This should be the way to do it. Now in the implementation o
On 2014-11-01 10:47:54 +, Jacob Carlborg said:
On 2014-11-01 01:58, Michel Fortin wrote:
That said, there are other parts of D/Objective-C that could pose
difficulties to existing languages tools, some syntactic (__selector, or
"this.class" to get the metaclass)
"this.class" could perha
On 2014-11-04 13:29, Christian Schneider wrote:
what is funky in this context (see above): even when using
ObjcObject in both the mapping and the action method, the test
if (sender is demoTableView) {
//
}
does not fail in the action
That will just compare the address of the objects.
,
On 2014-11-04 23:46, Michel Fortin wrote:
Once this is merged in DMD, __selector could be documented to be
syntactically identical to a delegate (although semantically different)
and it could be made syntactically valid for regular D code compiled
with no Objective-C support (although it'd remai
There is no test for interface-to-class casts in the
D/Objective-C test suite, which means you're likely the first
person to try that. It's probably just an oversight in the
compiler code.
Hey Michel, thanks very much for this explanation! That's
actually good news. It certainly will be goo
10 matches
Mail list logo