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
1
vote
1 answer

Using Objective-C Lambda syntax with GNUStep

Objective-C has a Lambda-like syntax called Blocks that was introduced by Clang, but it requires runtime support. How can I use it when my environment is GNUStep instead of Apple's runtime?
Ido
  • 2,034
  • 1
  • 17
  • 16
1
vote
1 answer

Shouldn't NSMutableArray retain added objects?

Hi I am facing an issue with Linux / GNUstep. My NSMutableArray(s) do not seem to retain any added objects to them. Shouldn't they? Example: NSString * str = @"test"; NSMutableArray * arr = [[NSMutableArray alloc] init]; NSLog(@"before add…
Dimitrios Menounos
  • 545
  • 1
  • 6
  • 17
1
vote
0 answers

Declaring variable results in "undefined reference" error message

I am new to Objective C and using GNUstep on Windows. When I try to compile the following code: #import #import "song.h" #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__]…
squared
  • 45
  • 6
1
vote
1 answer

ISO C++ forbids declaration of 'pthread_cond_t' with no type

I'm getting some errors while trying to compile objective-c code that I didn't originally write. The platform is GNUstep on Windows 10. I'm very new to all this, so I suspect I'm making an elementary mistake. Help! Compilation Errors: $ make This is…
Lightbeard
  • 4,011
  • 10
  • 49
  • 59
1
vote
1 answer

How did a command line Objective-C program create its main NSThread thread?

I am wondering if the a objective-c program itself is a NSThread object. A very simple example: #import #import int main() { printf("Is this a main thread? %s\n", [NSThread isMainThread] ? "yes" : "no"); …
Jason Umi
  • 31
  • 3
1
vote
1 answer

Objective C program Compilation and Execution

I am a newbie to Objective C programs. I'm learning to code from tutorialspoint.com As mentioned therein I downloaded GNUstep (Windows). First, installed the MSYS/MinGW System package and then core package. After that followed the steps mentioned…
1
vote
0 answers

@autoreleasepool crashes program with seg fault

I've just installed GNUstep, libobjc2, and llvm on a ubuntu 14.04 box using this script. The installation works for most objective-c2.0 features but not for arc. If I run the following simple program, it crashes as soon as it executes…
mark allyn
  • 17
  • 4
1
vote
0 answers

gnustep with appkit dpi issue when loading nsimage

I'm using objc code which run both on mac and linux. on mac i use xcode for compiling and on linux i use GNUstep. (code is the same) i got issue regarding the dpi. i use the following code to check image dpi NSBitmapImageRep* rep =…
ibm123
  • 1,214
  • 2
  • 15
  • 39
1
vote
0 answers

Cross-compiling gnustep-base from Linux to Windows

I've been trying to cross-compile gnustep-base for weeks now with mingw-w64 on an Arch Linux machine, but I'm getting stuck. I was able to compile libobjc2, and set up gnustep-make. For gnustep-make, I used the following configure…
rb3
  • 113
  • 1
  • 1
  • 9
1
vote
1 answer

Negate previous -D[efine] flag for GCC

Under GNUStep on Arch Linux, I'm running into an interesting error on a fresh install. Using my build system I run gcc `gnustep-config --debug-flags` [other command line args] in order to build up the command line per the operating system's…
Qix - MONICA WAS MISTREATED
  • 14,451
  • 16
  • 82
  • 145
1
vote
1 answer

GNUStep make with a precompiled (and prefixed) .pch header from Xcode project?

I'm trying to build an Xcode project with GNUStep-make. Right now the project is very small (3 classes) however it will grow to hundreds of classes over the coming weeks so I'm trying to get everything figured out and well-organised now. Xcode…
d11wtq
  • 34,788
  • 19
  • 120
  • 195
1
vote
1 answer

Referencing DLLs for Objective-C (GNUStep on Windows)

How do you reference DLLs from Objective-C? I use GNUStep Make files on Windows. RIch
kim3er
  • 6,306
  • 4
  • 41
  • 69
1
vote
0 answers

Catching NSInvalidArgumentException

I've been toying around with Objective-C + GNUstep on Linux lately, but I can't understand why this code snippet doesn't work the way I think it should. Sending the talk message to pet causes an NSInvalidArgumentException to be thrown like I'd…
NapoleonBlownapart
  • 309
  • 1
  • 2
  • 8
1
vote
1 answer

NSURLDownload not starting

I am attempting to download a URL using NSURLDownload, but it does not start downloading. Before continuing it must be said that I am using GNUStep for this. The outline of my project is as follows: MyClass.h: @interface MyClass : Object…
Nippysaurus
  • 20,110
  • 21
  • 77
  • 129
1
vote
1 answer

data reloading in NSOutlineView

simple existentialist question that google can't answer me: When and NSOutlineView send the message outlineView:setObjectValue:forTableColumn:byItem: to its data source, will it always reload its data? I have [sourceList reloadData]; as the last…
theprole
  • 2,274
  • 23
  • 25