Skip to content
This repository was archived by the owner on Nov 25, 2019. It is now read-only.
This repository was archived by the owner on Nov 25, 2019. It is now read-only.

NSDate column values are returned as _NSCFNumber* objects #64

@jklimke

Description

@jklimke

Hi,

i noticed when i tried to work with the updatedAt and other date fields, that the values returned from NSDate* getters are in fact of type NSCFNumber*

here is an excerpt of a xcode debugger session. the field lastUpdate is a NSDate* property.

self PNOfferUpdater * 0xc080480 0x0c080480
NSObject NSObject
_delegate PNOfferListViewController * 0xc07e580 0x0c07e580
_groups NSArray * nil 0x00000000
_groupOffers __NSDictionaryM * 0 key/value pairs 0x0c085220
_updateInterval NSTimeInterval 0 0
lastUpdate __NSCFNumber * (double)1.38669e+09 0x0c0815b0
updateRun PNOfferUpdate * 0xc07f160 0x0c07f160
ActiveRecord ActiveRecord

After a little more debugging i found out that the toColumnType method of the NSDateColumn directly returns the value that was passed to the method. I think it should return an NSDate object made out of the nsnumber-object passed.

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