I have an NSArrayController containing items and a text field in a window
which is bound to a custom class "MyController" via model key path:
filteredResultsString


-(NSString *)filteredResultsString
{
return ([[NSNumber numberWithInt:[[itemsController arrangedObjects] count]]
stringValue]);
}


This works, except when the contents of the NSArrayController change it does
not update.

If I change the binding to controller key arrngedObjects model key path
@count it works perfectly, but I want to use my custom method to customize
the output in a way that a Display Pattern can't.

How do I get this to work?


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to