VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /usr/share/doc/gnustep-base-doc/Base/Reference/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/gnustep-base-doc/Base/Reference/NSProtocolChecker.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
    <title>NSProtocolChecker class reference</title>
  </head>
  <body>
    <font face="serif">
    <a href="Base.html">Up</a>
    <br />
    <h1><a name="title$NSProtocolChecker">NSProtocolChecker class reference</a></h1>
    <h3>Authors</h3>
    <dl>
      <dt>Mike Kienenberger</dt>
      <dd>
      </dd>
    </dl>
    <p><b>Copyright:</b> (C) 1995 Free Software Foundation, Inc.</p>

        <div>
    </div>

          <h1><a name="001000000000">
        Software documentation for the NSProtocolChecker class
      </a></h1>
    <h2><a name="class$NSProtocolChecker">NSProtocolChecker</a> : <a rel="gsdoc" href="NSProxy.html#class$NSProxy">NSProxy</a></h2>
    <blockquote class="declared">
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>Foundation/NSProtocolChecker.h</dd>
      </dl>
    </blockquote>
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
          The NSProtocolChecker and NSProxy classes provide message
          filtering and forwarding capabilities. If you wish
          to ensure at runtime that a given object will only be sent
          messages in a certain protocol, you create an
          <code>NSProtocolChecker</code> instance with the
          protocol and the object as arguments-

<pre>
    id versatileObject = [[ClassWithManyMethods alloc] init];
    id narrowObject = [NSProtocolChecker protocolCheckerWithTarget: versatileObject
                                         protocol: @protocol(SomeSpecificProtocol)];
    return narrowObject;
</pre>
      
          This is often used in conjunction with distributed
          objects to expose only a subset of an objects methods
          to remote processes
        
    </div>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="NSProtocolChecker.html#method$NSProtocolChecker+protocolCheckerWithTarget$protocol$">+protocolCheckerWithTarget:protocol:</a></li>
      <li><a rel="gsdoc" href="NSProtocolChecker.html#method$NSProtocolChecker-forwardInvocation$">-forwardInvocation:</a></li>
      <li><a rel="gsdoc" href="NSProtocolChecker.html#method$NSProtocolChecker-initWithTarget$protocol$">-initWithTarget:protocol:</a></li>
      <li><a rel="gsdoc" href="NSProtocolChecker.html#method$NSProtocolChecker-protocol">-protocol</a></li>
      <li><a rel="gsdoc" href="NSProtocolChecker.html#method$NSProtocolChecker-target">-target</a></li>
    </ul>
    <hr width="50%" align="left" />
<div class="method">
    <h3><a name="method$NSProtocolChecker+protocolCheckerWithTarget$protocol$">protocolCheckerWithTarget:&nbsp;protocol:&nbsp;</a></h3>
    + (id) <b>protocolCheckerWithTarget:</b> (<a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a>*)anObject<b> protocol:</b> (Protocol*)aProtocol;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Allocates and initializes an NSProtocolChecker
            instance by calling
            <a rel="gsdoc" href="#method$NSProtocolChecker-initWithTarget$protocol$">
              -initWithTarget:protocol:
            </a>

            <br /> Autoreleases and returns the new instance.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSProtocolChecker-forwardInvocation$">forwardInvocation:&nbsp;</a></h3>
    - (void) <b>forwardInvocation:</b> (<a rel="gsdoc" href="NSInvocation.html#class$NSInvocation">NSInvocation</a>*)anInvocation;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Forwards any message to the delegate if the method
            is declared in the checker&apos;s protocol; otherwise raises
            an <code>NSInvalidArgumentException</code>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSProtocolChecker-initWithTarget$protocol$">initWithTarget:&nbsp;protocol:&nbsp;</a></h3>
    - (id) <b>initWithTarget:</b> (<a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a>*)anObject<b> protocol:</b> (Protocol*)aProtocol;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Initializes a newly allocated NSProtocolChecker
            instance that will forward any messages in the
            <var>aProtocol</var> protocol to <var>anObject</var>,
            its delegate. Thus, the checker can be vended in lieu
            of <var>anObject</var> to restrict the messages that can
            be sent to <var>anObject</var>. If any method in the
            protocol returns <var>anObject</var>, the checker
            will replace the returned value with itself rather
            than the target object. <br /> Returns the new
            instance.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSProtocolChecker-protocol">protocol&nbsp;</a></h3>
    - (Protocol*) <b>protocol</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the protocol object the checker uses to
            verify whether a given message should be forwarded
            to its delegate.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSProtocolChecker-target">target&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a>*) <b>target</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the target of the NSProtocolChecker.
          
    </div>
    <hr width="25%" align="left" />
</div>
    <br />
    <a href="Base.html">Up</a>
    </font>
</body>
</html>

VaKeR 2022