Questions tagged [gnustep]

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.

198 questions
2
votes
2 answers

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

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…
user310291
  • 36,946
  • 82
  • 271
  • 487
2
votes
1 answer

Link with GNUstep on Ubuntu 14.04, 64 bit

I am attempting to compile a simple application that references GNUstep classes, with GNUstep on my Ubuntu 14.04, 64 bit, machine: #import #import int main(int argc, char **argv) { NSString *bestType =…
Elector Niklas
  • 151
  • 1
  • 9
2
votes
0 answers

Problems with Protocols in Categories (clang)

I have some problems with Protocols in Categories with clang compilier in Objective-C. I think clang ignore any protocols if this specified in Category, like in sample code below. If line "@interface MyClass() " is replaced to…
2
votes
0 answers

Deploy GNUStep application on windows machine

I've an application written in objective-c with foundation framework, and it does not have any UI components. i build the application using GNUStep and GCC. Now i want to deploy the application on another windows machine which is not having GNUStep…
2
votes
1 answer

Core-data: when accessing a relationship, the count method on NSSet fails

I'm trying to access a relationship (one to many) programatically. My Data model contains an NSManagedEntity called language (with a two string attributes) with a relationship to an entity called WordCategory (one-to-many). I use an NSFetchRequest…
theprole
  • 2,274
  • 23
  • 25
2
votes
1 answer

NSTextCheckingResult range returns "id" instead of "NSRange"

I took some examples how to use RegularExpression in Objective-c. The problem is I want to use the same code for Linux (gnustep) and for OSX too. After small changes it works in OSX but not under Linux. NSArray* matches = [regex…
Marian
  • 33
  • 4
2
votes
1 answer

Segmentation fault when attemping to print NSString as UTF8String

I have the following objective-c snippet in my hello world example: //hello.m #import #import "hello.h" void sayHello() { #ifdef FRENCH NSString *helloWorld = @"Bonjour Monde!\n"; #else NSString…
Rene Groeschke
  • 27,999
  • 10
  • 69
  • 78
2
votes
3 answers

what was the second parameter in "id (*IMP)(id, SEL, ...) " used for?

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.
hao haochao
  • 91
  • 1
  • 8
1
vote
1 answer

Windows and objective-c

I want to start learning objective-c with book: Programming in Objective-C (4th Edition) . I working on Windows xp. To compile objective-c programs I install GNUstep and when I type this example what I found in some tutorial: #import…
klemens
  • 403
  • 1
  • 7
  • 20
1
vote
3 answers

unable to make the make file

Hi Sir first of all i would like to thank you for answering me . still i am stuck up with an error when i type include $(GNUSTEP_MAKEFILES)/common.make in the MINGW32 shell i am getting the error as follows sh: GNUSTEP_MAKEFILES: command not…
Ramu
1
vote
1 answer

GNUstep main file implementation

I'm not sure of the exact purpose of creating a main file that looks like this #include "AppController.h" #include int main(int argc, const char *argv[]) { NSAutoreleasePool *pool; AppController *delegate; pool =…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98
1
vote
4 answers

Prevent scientific notation with NSDecimalNumber output as NSString

I have a problem similar to the one in this question: How to obtain an unformatted string representation of an NSDecimal or NSDecimalNumber? I need to have a number in string format accurately represented as an NSNumber, but this number is converted…
Jay Sheridan
  • 668
  • 8
  • 15
1
vote
1 answer

Compiling App Wrappers with GNUStep

I am following the directions verbatim as on the GNUStep website. Here's my make file. include $(GNUSTEP_MAKEFILES)/common.make APP_NAME = FirstApp FirstApp_OBJC_FILES = main.m \ MyController.m FirstApp_MAIN_MODEL_FILE =…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98
1
vote
0 answers

GNUStep and Class Methods

In the documentation for GNUstep objective c, it states that "it is not allowed to override an inherited class method." It then goes on to say that you can override the version such as [NSString version] in your sub classes. Is the version method…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98
1
vote
2 answers

Compiling fails on Dl_Info

I am trying to use Android NDK Make to build a project but I get the following errors. In file included from…
Jackie
  • 21,969
  • 32
  • 147
  • 289