Re: Debugging Bindings in Cocoa
Re: Debugging Bindings in Cocoa
- Subject: Re: Debugging Bindings in Cocoa
- From: Gabriele de Simone <email@hidden>
- Date: Wed, 18 Feb 2004 10:50:22 -0500
On Feb 17, 2004, at 2:19 PM, mmalcolm crawford wrote:
There isn't much source code to show, unfortunately. I implemented
interactive filtering on a NSArrayController using one of the
examples I found on:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
What happened is that when the controller was being filtered, any
insertion that did not match the filter would fail. I understand that
filtering is a bit of a hack, but it also seems odd that none of the
controller objects posts something like this: "object could not be
inserted". The NSStateMarker warning is a little too late in the
chain of events to make sense of what's happening.
I'm not sure why you didn't see an "Object could not be inserted"
error -- I got that?
I'm also not sure why you regard filtering as "a bit of a hack"?
There's a clear entry point in the API for this, and it generally
works well enough.
I really meant that in a good way :-) With so few people around with
deep understanding of Cocoa Bindings, without your examples I would
personally have little clue of how to exploit the API to its fullest
(thank you!).
Gabe
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.