One Quickie


Handling double-clicks in a browser (NSBrowser->General)
- (void) awakeFromNib
{
    [browser setTarget: self];
    [browser setDoubleAction: @selector(browserDoubleClick:)];
} // awakeFromNib

...

- (IBAction) browserDoubleClick: (id) sender
{
    int column = [browser selectedColumn];
    int row = [browser selectedRowInColumn: column];

    // then dig into your data structure with the row and column

} // browserDoubleClick



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com