Program's output: ------------------------------------------------------------------------- 2012-11-13 22:39:20.820 helloworld[2900] autorelease called without pool for obj ect (0x749c58) of class GSCInlineString in thread <NSThread: 0x749b68> 2012-11-13 22:39:20.789 helloworld[2900] WARNING - unable to create shared user defaults! 2012-11-13 22:39:20.836 helloworld[2900] main#tick 2012-11-13 22:39:20.836 helloworld[2900] autorelease called without pool for obj ect (0x749400) of class NSException in thread <NSThread: 0x749b68> 2012-11-13 22:39:20.851 helloworld[2900] autorelease called without pool for obj ect (0x36bc358) of class GSMutableArray in thread <NSThread: 0x749b68> helloworld.exe: Uncaught exception NSInvalidArgumentException, reason: -[obj1 do _it]: unrecognized selector sent to instance 0x748690
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
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:
> reason: -[obj1 do_it]: unrecognized selector
Jamie
On Nov 13, 2012, at 4:46 PM, Andor Kocsis <andor_koc...@yahoo.com> wrote:
> Program's output:
> -------------------------------------------------------------------------
> 2012-11-13 22:39:20.820 helloworld[2900] autorelease called without pool for obj
> ect (0x749c58) of class GSCInlineString in thread <NSThread: 0x749b68>
> 2012-11-13 22:39:20.789 helloworld[2900] WARNING - unable to create shared user
> defaults!
> 2012-11-13 22:39:20.836 helloworld[2900] main#tick
> 2012-11-13 22:39:20.836 helloworld[2900] autorelease called without pool for obj
> ect (0x749400) of class NSException in thread <NSThread: 0x749b68>
> 2012-11-13 22:39:20.851 helloworld[2900] autorelease called without pool for obj
> ect (0x36bc358) of class GSMutableArray in thread <NSThread: 0x749b68>
> helloworld.exe: Uncaught exception NSInvalidArgumentException, reason: -[obj1 do
> _it]: unrecognized selector sent to instance 0x748690
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
On 13 Nov 2012, at 22:08, Jamison Hope <j...@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.
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:
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.da...@gmail.com>
To: Jamison Hope <j...@theptrgroup.com> Cc: Andor Kocsis <andor_koc...@yahoo.com>; discuss-gnus...@gnu.org Sent: Tuesday, November 13, 2012 11:24 PM
Subject: Re: NSThreading
On 13 Nov 2012, at 22:08, Jamison Hope <j...@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.
> 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:
> 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?
> On 13 Nov 2012, at 22:08, Jamison Hope <j...@theptrgroup.com
> <mailto:j...@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.