//----------------------------------------------------------------------------------------------------
// IOHIDUserDevice::newLocationIDNumber
//----------------------------------------------------------------------------------------------------
OSNumber *IOHIDUserDevice::newLocationIDNumber() const
{
    OSNumber * number = OSDynamicCast(OSNumber, _properties->getObject(kIOHIDLocationIDKey));
    
    if ( !number ) 
        return NULL;
    
    number->retain();
    
    return number;
}
//----------------------------------------------------------------------------------------------------
// IOHIDUserDevice::newCountryCodeNumber
//----------------------------------------------------------------------------------------------------
OSNumber *IOHIDUserDevice::newCountryCodeNumber() const
{
    OSNumber * number = OSDynamicCast(OSNumber, _properties->getObject(kIOHIDCountryCodeKey));
    
    if ( !number ) 
        return NULL;
    
    number->retain();
    
    return number;
}
//----------------------------------------------------------------------------------------------------
// IOHIDUserDevice::newVendorIDSourceNumber
//----------------------------------------------------------------------------------------------------
OSNumber *IOHIDUserDevice::newVendorIDSourceNumber() const
{
    OSNumber * number = OSDynamicCast(OSNumber, _properties->getObject(kIOHIDVendorIDSourceKey));
    
    if ( !number ) 
        return NULL;
        
    number->retain();
        
    return number;
}
//----------------------------------------------------------------------------------------------------
// IOHIDUserDevice::newReportIntervalNumber
//----------------------------------------------------------------------------------------------------
OSNumber *IOHIDUserDevice::newReportIntervalNumber() const
{
    OSNumber * number = OSDynamicCast(OSNumber, _properties->getObject(kIOHIDReportIntervalKey));
    
    if ( !number ) {
        number = IOHIDDevice::newReportIntervalNumber();
    }
    else {
        number->retain();
    }
        
    return number;
}