Skip to content

Instantly share code, notes, and snippets.

@danielvlopes
Created January 16, 2011 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielvlopes/782006 to your computer and use it in GitHub Desktop.
Save danielvlopes/782006 to your computer and use it in GitHub Desktop.
class PeoplePickerViewController
attr_accessor :peoplePicker
def awakeFromNib
center = NSNotificationCenter.defaultCenter
center.addObserver self,
selector: 'recordChanged:',
name: ABPeoplePickerNameSelectionDidChangeNotification,
object:peoplePicker
end
def recordChanged(notification)
puts "blabla"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment