Re: Reporting errors from key-value-coding accessors
Re: Reporting errors from key-value-coding accessors
- Subject: Re: Reporting errors from key-value-coding accessors
- From: Mark Alldritt <email@hidden>
- Date: Fri, 19 Aug 2005 12:53:39 -0700
Hi,
>> In my application I have a long list of KVC accessor functions that
>> need to
>> potentially report errors. If the accessor is called from
>> bindings, I'm not
>> at all sure how to report an error.
>
> Use KVC validation methods:
> <http://developer.apple.com/documentation/Cocoa/Conceptual/
> KeyValueCoding/Concepts/Validation.html>
Thanks for the pointer. This is fine in as far as it goes, but there are
still problems which this does not address:
1) Cocoa Scripting does not appear to use this
2) It does not help with getters that need to signal errors
3) What if a pre-flight validation model does not fit your application?
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 3.0 - AppleScript IDE
WEB: http://www.latenightsw.com/ FaceSpan 4.2 - AppleScript RAD
Affrus 1.0 - Perl Debugging
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden