oksunp / vvopensource

Automatically exported from code.google.com/p/vvopensource
0 stars 0 forks source link

missing sourceNodeNameArray method? #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm not sure if there's a reason why there is a destNodeNameArray but no 
corresponding sourceNodeNameArray, but I added one and it seems to work just 
fine.  I only know enough to be dangerous, so I'm filing this as an issue so 
this code can be integrated or I can be scolded for trying something stupid.  

--- VVMidiManager.h ---

- (NSArray *) sourceNodeNameArray;

--- VVMidiManager.m ---

- (NSArray *) sourceNodeNameArray   {
    NSMutableArray      *returnMe = [NSMutableArray arrayWithCapacity:0];
    NSString            *nodeName = nil;

    [sourceArray rdlock];
    for (VVMIDINode *nodePtr in [sourceArray array])    {
        nodeName = [nodePtr name];
        if (nodeName != nil)
            [returnMe addObject:nodeName];
    }
    [sourceArray unlock];
    return returnMe;
}

Original issue reported on code.google.com by rah...@gmail.com on 12 Jan 2011 at 7:05

GoogleCodeExporter commented 8 years ago

Original comment by raycut...@gmail.com on 31 Aug 2011 at 3:50