Ignore:
Timestamp:
Mar 31, 2006, 10:02:13 AM (19 years ago)
Author:
darin
Message:

Reviewed by Geoff.

  • <rdar://problem/4395622> API: WebScriptObject.h incorrectly reports that -isSelectorExcludedFromWebScript returns NO by default
  • bindings/objc/WebScriptObject.h: Fixed comment.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bindings/objc/WebScriptObject.h

    r12069 r13610  
    11/*
    2     Copyright (C) 2004 Apple Computer, Inc. All rights reserved.   
    3    
     2    Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved.   
     3
    44    Public header file.
    55 */
     
    1616   
    1717    Instances automatically reflect their interfaces in the scripting environment.  This
    18     automatic reflection can be overriden using the class methods defined in the WebScripting
     18    automatic reflection can be overridden using the class methods defined in the WebScripting
    1919    informal protocol.
    2020   
     
    4242       
    4343    Not all methods are exposed.  Only those methods whose parameters and return
    44     type meets the export criteria will exposed.  Valid types are ObjectiveC instances
     44    type meets the export criteria will exposed.  Valid types are Objective-C instances
    4545    and scalars.  Other types are not allowed.  Classes may further exclude method
    4646    that they do not want to expose.
    4747   
    4848    Types will be converted to appropriate types in the scripting environment.
    49     After any KVC coercion occurs the ObjectiveC types will converted to a type
     49    After any KVC coercion occurs the Objective-C types will converted to a type
    5050    appropriate for the script environment.  For JavaScript NSNumber will be
    5151    converted to numbers.  NSString will be converted to strings.  NSArray will
     
    5353    WebUndefined will be converted to undefined.  WebScriptObjects will be unwrapped.
    5454    Instances of other classes will be wrapped when passed to the script environment
    55     and unwrapped when returned to ObjectiveC.  Similar conversion happens in the
     55    and unwrapped when returned to Objective-C.  Similar conversion happens in the
    5656    other direction.
    5757*/
     
    6666    method is not implemented the default name for the selector will
    6767    be used.  The default name concatenates the components of the
    68     ObjectiveC selector name and replaces ':' with '_'.  '_' characters
     68    Objective-C selector name and replaces ':' with '_'.  '_' characters
    6969    are escaped with an additional '$', i.e. '_' becomes "$_".  '$' are
    7070    also escaped, i.e.
    71         ObjectiveC name         Default script name
     71        Objective-C name        Default script name
    7272        moveTo::                move__
    7373        moveTo_                 moveTo$_
    7474        moveTo$_                moveTo$$$_
    75     @result Returns the name to be used to represent the specificed selector in the
     75    @result Returns the name to be used to represent the specified selector in the
    7676    scripting environment.
    7777*/
     
    8383    @discussion Return YES to prevent the selector appearing in the script
    8484    environment.  Return NO to expose the selector in the script environment.
    85     If this method is not implemented on the class all the selector that match
    86     the export criteria will be exposed.
     85    If this method is not implemented on the class no selectors will be exposed.
    8786    @result Returns YES to hide the selector, NO to expose the selector.
    8887*/
     
    9291    @method webScriptNameForKey:
    9392    @param name The name of the instance variable that will be exposed to the
    94     script enviroment.  Only that properties that meet the export criteria will
     93    script environment.  Only that properties that meet the export criteria will
    9594    be exposed.
    9695    @discussion Provide an alternate name for a property.
    97     @result Returns the name to be used to represent the specificed property in the
     96    @result Returns the name to be used to represent the specified property in the
    9897    scripting environment.
    9998*/
     
    103102    @method isKeyExcludedFromWebScript:
    104103    @param name The name of the instance variable that will be exposed to the
    105     scrip environment.
    106     @discussion Return YES to exclude the property from visibility in the script environement.
    107     Return NO to expose the instance varible to the script environment.
     104    script environment.
     105    @discussion Return YES to exclude the property from visibility in the script environment.
     106    Return NO to expose the instance variable to the script environment.
    108107    @result Returns YES to hide the property, NO to expose the property.
    109108*/
     
    149148    @class WebScriptObject
    150149    @discussion WebScriptObjects are used to wrap script objects passed from
    151     script environments to ObjectiveC.  WebScriptObjects cannot be created
     150    script environments to Objective-C.  WebScriptObjects cannot be created
    152151    directly.  In normal uses of WebKit, you gain access to the script
    153152    environment using the "windowScriptObject" method on WebView.
Note: See TracChangeset for help on using the changeset viewer.