Re: Can't get Objective-C class method to compile.

2015-12-31 Thread Jeremie Pelletier via Digitalmars-d
On Thursday, 31 December 2015 at 08:56:07 UTC, Jacob Carlborg wrote: D doesn't support Objective-C classes methods yet. But as a workaround you can look how it's done with the "alloc" method in the documentation [1]. Declare the method as a non-static method but use the result from "objc_lookUp

Re: Can't get Objective-C class method to compile.

2015-12-31 Thread Jacob Carlborg via Digitalmars-d
On Thursday, 31 December 2015 at 03:43:58 UTC, Jeremie Pelletier wrote: This is from the class method call to NSProcessInfo.processInfo. I've tried without the selector but get a linker error on __D4main13NSProcessInfo11processInfoYZC4main13NSProcessInfo. I'm not sure if it is a bug or if I

Can't get Objective-C class method to compile.

2015-12-30 Thread Jeremie Pelletier via Digitalmars-d
Hello, I'm trying out the new interface to Objective-C and I can't get this to compile: module main; extern (Objective-C) { interface NSObject { void release() @selector("release"); } interface NSString : NSObject { const(char)* UTF8Strin