discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSThreading


From: Andor Kocsis
Subject: Re: NSThreading
Date: Wed, 14 Nov 2012 01:11:43 -0800 (PST)

Thanks to everyone for fast and accurate help. Selector fixed to "do_it:", and it works now. However still have a warning, and have no idea, how to avoid it. Programs output now:

------------------------------------------------
2012-11-14 09:13:32.020 helloworld[3096] obj1#tick
2012-11-14 09:13:31.980 helloworld[3096] WARNING - unable to create shared user
defaults!
2012-11-14 09:13:32.030 helloworld[3096] main#tick
------------------------------------------------

It complains only when NSThread starts - no warning about user defaults without NSThread. I am with admin rights on my Windows 7 system, and should not be a problem to create a file, if something library function really want to do that in depths. Also searched for a user defaults file, what it should to be on Windows system, thought no problem with creation, if system already have it. Not so much found.

Can i download one somewhere? Or any other way to fix it?


From: Tom Davie <tom.davie@gmail.com>
To: Jamison Hope <jrh@theptrgroup.com>
Cc: Andor Kocsis <andor_kocsis@yahoo.com>; discuss-gnustep@gnu.org
Sent: Tuesday, November 13, 2012 11:24 PM
Subject: Re: NSThreading


On 13 Nov 2012, at 22:08, Jamison Hope <jrh@theptrgroup.com> wrote:

> That should be 'NSSelectorFromString(@"do_it:")' with the colon at the end.
> At least, that fixes it compiling/running on Cocoa, so I assume it's the
> same issue for GNUstep.. and it is, look at your error message:

Or, alternatively, @selector(do_it:), which will allow the compiler to verify that the selector actually exists somewhere.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]