One Quickie


Changing the "Not Applicable" text in tableviews (Bindings->General)
Sometimes you want to bind a tableview column to objects that might not support that particular binding (like having an uber-overview tableview for core data entities that don't all share the same attributes). If your column has a numeric formatter, IB won't let you specify a string for the "not applicable" value, so you end up with a really ugly tableview covered in "Not Applicable"s

Put this in a convenient place:

+ (void) initialize
{
    [NSTextFieldCell setDefaultPlaceholder: @""
                               forMarker: NSNotApplicableMarker
                             withBinding: NSValueBinding];

} // initialize



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

webmonster@borkware.com