I am writing a small MacRuby script to grab some ABRecords from a search query, but I am unsure how to gain access to enums declared in a specific header file for the AddressBook framework.
I have this script and I am trying to have kABFirstNameProperty & kABEqual brought into the environment as constants. But when running the script the two constants cannot be found.
framework "Cocoa"
framework "AddressBook"
globalAddressBook = ABAddressBook.sharedAddressBook
criteriaElement = ABPerson.searchElementForProperty(kABFirstNameProperty, label:nil, key:nil, value:"Callum", comparison:kABEqual)