a free implementation of Cocoa (formerly NeXT's OpenStep) Objective-C libraries (called frameworks), widget toolkit, and application development tools. It is part of the GNU Project.
Questions tagged [gnustep]
198 questions
1
vote
3 answers
Objective-C on GNUstep AutoReleasePool undeclared problem
I'm new to Objective-C and working in GNUstep and MinGW environment. I am compiling this code but having an error:
#import "Foundation/Foundation.h"
@interface C : NSObject
{
float f;
}
- (void) gamerHell: (NSString *) name : (NSString *)…

g.revolution
- 11,962
- 23
- 81
- 107
1
vote
3 answers
Why is arc4random returning negative numbers sometimes?
I'm using arc4random() to generate numbers in a certain range. However, I will intermittently receive negative numbers. I'm not doing anything strange:
if([aBug x] == -1) {
x = arc4random() % columns;
}
if([aBug y] == -1) {
y = arc4random()…

Vivin Paliath
- 94,126
- 40
- 223
- 295
1
vote
1 answer
How do I tell my GNUMakefile to link against a specific library?
My GNUMakefile is as follows:
include $(GNUSTEP_MAKEFILES)/common.make
APP_NAME = MyApp
MyApp_HEADER_FILES = src/objc/framework/Bug.h src/objc/framework/NSMutableArray+Shuffle.h src/objc/framework/World.h src/objc/framework/BugProtocol.h…

Vivin Paliath
- 94,126
- 40
- 223
- 295
1
vote
1 answer
Synchronization and threading for an agent-based modeling project in Objective-C
First of all, I'm an Objective-C novice. Most of my background is in Java.. Also since most Objective-C questions revolve around Cocoa, I should point out that this is on GNUStep.
For a school project, I'm creating a simple agent-based-modeling…

Vivin Paliath
- 94,126
- 40
- 223
- 295
1
vote
1 answer
ObjectiveC project organization
I wonder what is the more appropriate structure for a Objective-C project (a project that have more than ten classes...).
Code source
I put each class declaration and implementation respectively in a .h and .m files. Moreover I organize these files…

Thierry Templier
- 198,364
- 44
- 396
- 360
1
vote
1 answer
A straightforward way of how to compile a program using GNUstep makefiles?
int main (int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog(@"Hello World!");
[pool drain];
return 0;
}
This is my program. I have run it on my friends iMac, and there are no problems with the…

DanielPincus
- 23
- 4
1
vote
1 answer
Why do we have NSNumber and NSTemporaryNumber as two different classes?
I went through the source code of GNUStep's NSNumber's implementation to understand how does factory method implementation works there.
From there What I could understand was we have NSNumber with blank implementation for all initWithXYZ kind of…

Amogh Talpallikar
- 12,084
- 13
- 79
- 135
1
vote
1 answer
Can't compile C++ in gnustep projectcenter
I've set up gnustep in windows,
have Gorm and Projectcenter runnng
and successfully build an Objective-C hello world app
with a UI built by Gorm.
However, adding C++ stuffs like Class etc
will make the project not compile.
The ProjectCenter's "New…

im_chc
- 1,023
- 15
- 24
1
vote
2 answers
objective-c synthesizeing leads to error?
I m pretty new to objective-c, and trying some examples on my own. Here is my sample code
#import
#import
@interface Test:NSObject
{
int noOfWheels;
int total;
}
@property int noOfWheels;
…

Whoami
- 13,930
- 19
- 84
- 140
0
votes
1 answer
GNUstep make dist
Is there anyway to configure the name of the archive that is created with make dist ahead of time? I have to recreate the file a lot. Also how do you control the version of the archive as well.
Thanks :-)

rubixibuc
- 7,111
- 18
- 59
- 98
0
votes
1 answer
How To Locate Header Files in GNUstep In Windows XP
I am completely new to objective c. I am trying to compile a very basic program of "hello world", but the problem is that gcc compiler can't figure out where my header files are. I wrote on cygwin bash shell:
$ gcc -lobjc hello.m -o hello
and error…

NightFury
- 13,436
- 6
- 71
- 120
0
votes
1 answer
Client server communication using Distributed Object
I am using Distributed Object for client server communication. I am storing clients object on the server for further communication between clients. when client terminate it will notify server about termination using…

Parag Bafna
- 22,812
- 8
- 71
- 144
0
votes
1 answer
How to edit LD_LIBRARY_PATH?
Unfortunately, I'm having trouble compiling the GNUstep Startup package. This requires an edit in the LD_LIBRARY_PATH variable which I'm unfamiliar with. Some reading up on it didn't quite tell me what I would need to do to implement a particular…

zeboidlund
- 9,731
- 31
- 118
- 180
0
votes
1 answer
Categories in static lib not regocnized at runtime
I am building an executable ("tool") on Linux. Using include $(GNUSTEP_MAKEFILES)/tool.make.
It's linked to a static lib that has also be build with GNUstep. The lib
contains Categories.
The executable builds fine but has errors at runtime not…

shallowThought
- 19,212
- 9
- 65
- 112
0
votes
1 answer
How to make path for gnu on windows
Just recently I installed the following programs on window 7 GNUstep msys, GNUstep core, GNUstep devel, GNUstep backend to learn objective C.
I wrote a piece of code just to print “Hello world” and saved it in a folder called “objectivec” with .m…

Fekru
- 1
- 2