@apiarian while researching objc i found this seems lik it should help