gnustep

How to compile an objective c program under windows with independant MingW

若如初见. 提交于 2019-12-01 09:08:14
问题 I know how to compile the objective c program using gnustep version of mingw. But I don't like their shell and I want to use the standard mingw gcc compiler. I put this gcc bin directory in environment path of course, open command prompt in my helloworld.m directory #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog (@"Hello World!"); [pool drain]; return 0; } and type gcc -o hello hello.m -I /GNUstep

GNUStep Getting Started

独自空忆成欢 提交于 2019-12-01 04:49:07
I downloaded GNUStep and installed it, however I am not sure where I can find an IDE. does anyone know what programs serve as a GNUStep IDE/where to get them? Failing that, does anyone know of a tutorial on how to create and compile a basic GNUStep program? Well my experiences with that are devastating. ProjectCenter the IDE distributed for GNUstep does not work here at all the debugger intergration is well not existant. But that's what you get with GNUstep. There is Gorm as interface builder and ProjectCenter. Not more. That's very discouraging. The best you can do with Objective-C is

How does one use Obj-C 2.0 with GNUstep?

旧巷老猫 提交于 2019-11-30 09:38:30
I'm aware of the existence of libobjc2, and I gather that I'll need to use clang rather than GCC, but I can't find any basic instructions of what's different about the compilation process. Can anyone give explicit, step-by-step instructions on acquiring, configuring, compiling, and using GNUstep with Objective-C 2.0 in Ubuntu ? Since the GNUStep ObjC2 FAQ has already been referenced, I'll assume you've had a look. I would like to point this out, however: For more advanced features, currently only supported if you compile with Clang, you will need the GNUstep runtime. This is not currently

what was the second parameter in “id (*IMP)(id, SEL, …) ” used for?

删除回忆录丶 提交于 2019-11-29 08:49:37
my question as the title says.obviously, the first parameter was used for this pointer , in some taste of c++.what about the second one? thak you. The signature of objc_msgSend() is: id objc_msgSend(id self, SEL op, ...); Every method call is compiled down to a call to this function. I.e., if you call: [anArray objectAtIndex:42]; That will be compiled as if it were: objc_msgSend(anArray, @selector(objectAtIndex:), 42); Now, to your question, why do methods get compiled down to a function that has the SEL as the second argument. Or, more specifically, why is this method: - (id)objectAtIndex:

Does Objective-C have a Standard Library?

纵然是瞬间 提交于 2019-11-28 00:25:02
问题 Most somewhat modern programming languages have a standard library? It is my impression is that there isn't a decent sized standard library for Obj-C , rather that it relies mostly/all on Cocoa and that (plus people not wanting to use GNUstep) is why Obj-C is only used on macs)? Is this true/to what extent? Are there any standard obj-c collections? (note I haven't done any Obj-C programming and am not to likely to try it in the near future, I'm just curious). P.S. are there a any decent non

Is Objective-C only used for development on Mac OS/iPhone? [closed]

拥有回忆 提交于 2019-11-27 15:39:32
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I don't know Objective-C but to me it appears a nice language. But the only context I know it from is everything Apple. But Objective-C is even in the GNU Compiler Collection. Is there something missing in the open ones? Or is there already a broader base for Objective-C? I'm