Skip to content

Builder pattern on OSX ARC, and reusing mapper after writing #3

@yonran

Description

@yonran

I’m trying to use SAXy OX on OS X 10.9. A couple issues I have run into:

  1. After converting to OSX project with ARC, testBuilderPattern fails. This is because the OXmlMapper is only weakly held by OXmlReader, so when you don’t hold an external reference, it is deleted immediately. Not sure why this doesn’t fail on iOS.
  2. testScalarEncodingScheme in OXTransformTests.m also fails, because @encode(long) is “q” and @encode(unsigned long) is “Q” on 64-bit OSX, not “l” and “L”.
  3. Using the same OXmlMapper in an OXmlWriter before OXmlReader causes the OXmlReader to return nil. If you do the writing before doing the reading in e.g. testXMLMappingMadeSimple, the test fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions