One Quickie


Becoming firstResponder if you don't have an editable cell (NSView->Hacks)
You make a custom view, add it to your window in Interface Builder, and you make it the first responder. When you run the program, your custom view is not the first responder, instead some lame-O textfield has snagged keyboard focus. To address this, override this undocumented method:
- (BOOL) _hasEditableCell
{
    return (YES);
} // _hasEditableCell
This workaround is necessary at least for Mac OS X 10.1.*.



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

webmonster@borkware.com