Re: [Gnustep-cvs] r32376 - in /libs/base/trunk/Source: GNUmakefile GSBlocks.m

2011-02-27 Thread Fred Kiefer
Original-Nachricht > Datum: Sun, 27 Feb 2011 01:20:58 + > Von: David Chisnall > An: Fred Kiefer > CC: GNUstep Developer > Betreff: Re: [Gnustep-cvs] r32376 - in /libs/base/trunk/Source: GNUmakefile > GSBlocks.m > On 26 Feb 2011, at 20:40, Fred Kiefer wrote: > > > Now

Trying to understand NSOperation

2011-02-27 Thread Banlu Kemiyatorn
Hi, please help me trying to understand the code below which try to demonstrate op queuing behaviors. Questions are in the comments. #include #import @interface MyOp : NSOperation { @public NSString *name; int sec; } @end static MyOp *a; static MyOp *b; static MyOp *c; @implem

Re: [Gnustep-cvs] r32376 - in /libs/base/trunk/Source: GNUmakefile GSBlocks.m

2011-02-27 Thread Richard Frith-Macdonald
On 27 Feb 2011, at 08:35, Fred Kiefer wrote: > > Original-Nachricht >> Datum: Sun, 27 Feb 2011 01:20:58 + >> Von: David Chisnall >> An: Fred Kiefer >> CC: GNUstep Developer >> Betreff: Re: [Gnustep-cvs] r32376 - in /libs/base/trunk/Source: GNUmakefile >> GSBlocks.m >

Re: Trying to understand NSOperation

2011-02-27 Thread Banlu Kemiyatorn
- (void) addDependency: (NSOperation *)op { if (NO == [op isKindOfClass: [self class]]) { ... Should [self class] be [NSOperation class] ? but why bother checking at all? ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailma

Re: Trying to understand NSOperation

2011-02-27 Thread Banlu Kemiyatorn
- (void) observeValueForKeyPath: (NSString *)keyPath ... while ((op = [en nextObject]) != nil) { if (NO == [op isReady]) <-- should this be isFinished ? break; } ___ Gnustep-dev mailing list Gnustep-dev@gnu.org htt