Skip to content

Instantly share code, notes, and snippets.

@danielvlopes
Created January 16, 2011 18:22
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/782007 to your computer and use it in GitHub Desktop.
Save danielvlopes/782007 to your computer and use it in GitHub Desktop.
#import <Cocoa/Cocoa.h>
#import <AddressBook/ABPeoplePickerView.h>
@interface PeoplePickerViewController : NSObject {
IBOutlet ABPeoplePickerView *ppView;
}
@end
----
#import "PeoplePickerViewController.h"
#import <AddressBook/ABGroup.h>
#import <AddressBook/ABGlobals.h>
@implementation PeoplePickerViewController
-(void)awakeFromNib
{
NSNotificationCenter* center;
center = [NSNotificationCenter defaultCenter];
[center addObserver:self
selector:@selector(recordChanged:)
name:ABPeoplePickerNameSelectionDidChangeNotification
object:ppView];
}
- (void)recordChanged:(NSNotification*)notification {
NSLog(@"ah");
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment