• 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: Delegates -- WHAT is delegated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delegates -- WHAT is delegated?


  • Subject: Re: Delegates -- WHAT is delegated?
  • From: Sam Colombo <email@hidden>
  • Date: Tue, 19 Dec 2006 21:33:09 -0600

    I got the latter from the Apple Reference Library:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals
/CommunicatingWithObjects/chapter_6_section_4.html#//apple_ref/doc/uid/TP400
02974-CH7-SW22>

"Delegation and the Application Kit

The delegating object in an application is often an NSApplication, NSWindow,
or NSView object. The delegate object itself is typically, but not
necessarily, an object, often a custom object, that controls some part of
the application (that is, a coordinating controller object)."

    But how can you tell (or specify) what methods of a class are
delegatable?

>
> On Dec 19, 2006, at 7:55 PM, Sam Colombo wrote:
>
>> What I don't understand is
>> WHAT is delegatable?
>
> The delegate methods specified by the class, if any. Not every view
> has an optional delegate.
>
>> If a class has a delegate, are all methods of the class delegatable?
>
> No.
>
>> What about methods in the superClasses?
>
> No.
>
>> NSView is supposedly (Apple documentation) delegatable.
>
> Where did you read that? NSView has no delegate methods.
>
>> I would think, of all classes, NSResponder would allow a delegate to
>> handle events, a la "Behaviors" in MacApp.  Does it?
>
> No.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Follow-Ups:
    • Re: Delegates -- WHAT is delegated?
      • From: Nat Lanza <email@hidden>
    • Re: Delegates -- WHAT is delegated?
      • From: glenn andreas <email@hidden>
References: 
 >Re: Delegates -- WHAT is delegated? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Delegates -- WHAT is delegated?
  • Next by Date: Re: Delegates -- WHAT is delegated?
  • Previous by thread: Re: Delegates -- WHAT is delegated?
  • Next by thread: Re: Delegates -- WHAT is delegated?
  • Index(es):
    • Date
    • Thread