Re: What is the expected Cocoa API behavior in an incomplete object traversal?
Re: What is the expected Cocoa API behavior in an incomplete object traversal?
- Subject: Re: What is the expected Cocoa API behavior in an incomplete object traversal?
- From: Uli Kusterer <email@hidden>
- Date: Sat, 16 Oct 2010 11:41:53 +0200
On 16.10.2010, at 01:55, Tito Ciuro wrote:
> No, the method is part of an API meant for developers. So even though in most cases there won't be an issue, occasionally there could be some anomaly, in which non-conforming objects could slip through. How to let the developer know that this issue happened is what I'm interested in.
That's a programming error. Throw an exception. The earlier a program fails due to invalid data, the easier a programmer can fix it. In a release build, I'd at least log an error to the console describing the error (and even the class names of the problematic objects etc.).
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.lookandfeelcast.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden