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
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
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
>
- (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
- (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