MapXL / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

managingMarker returns YES when having no objects #117

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a marker manager
2. create a marker
3. [markerManager managingMarker:marker] returns YES

What is the expected output? What do you see instead?
NO

What subversion release are you using? Does the behavior occur on the
simulator, a real iPhone/iPod Touch, or both?

0.5, simulator

funny enough if you change the code to:

/// \deprecated violates Objective-C naming rules
- (BOOL) managingMarker:(RMMarker*)marker
{
    if (marker != nil && [[self getMarkers] containsObject:marker]) {
        return YES;
    }
    return NO;
}

iso indexOfObject, it does work, though i cannot explain why...

Original issue reported on code.google.com by chris.lu...@gmail.com on 24 Aug 2009 at 10:19