• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reporting errors from key-value-coding accessors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Reporting errors from key-value-coding accessors
      • From: Dustin Voss <email@hidden>
  • Prev by Date: Re: Dependent Keys
  • Next by Date: Re: Dependent Keys
  • Previous by thread: Re: Reporting errors from key-value-coding accessors
  • Next by thread: Re: Reporting errors from key-value-coding accessors
  • Index(es):
    • Date
    • Thread