Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5934635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:08:29+00:00 2026-05-22T15:08:29+00:00

In Objective-C / Cocoa how do I discover the messages I can implement in

  • 0

In Objective-C / Cocoa how do I discover the messages I can implement in a delegate class?

From what I have read in the documentation a class will only allow certain chosen messages to be handled via a delegate but so far have found difficulty finding a list of messages for a class.

To ask the question another way, if I created a delegate for NSApplication, which messages are available for me to handle?

The documentation for NSApplication states a delegate

responds to certain messages on behalf of NSApp.

The documentation then goes onto say

NSApplication defines over twenty delegate methods that offer opportunities for modifying specific aspects of application behavior.

but as far as I can see it fails to list these methods / messages so how do I know which ones will be called from my delegate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:08:30+00:00Added an answer on May 22, 2026 at 3:08 pm

    The delegate is usually supposed to conform to a protocol declared for that purpose, e.g. NSApplicationDelegate. If it’s not clearly spelled out already, you can often find the name of the appropriate protocol by looking at the type of the delegate property (in this case, id<NSApplicationDelegate>). You can check the documentation for details on the methods, or the @protocol declaration in the appropriate header file for specifics on which methods are available and which are required or optional.

    There are some cases where the object does not define a protocol for its delegate, for example NSURLConnection. In this case, you just have to follow the documentation of the class with respect to what it expects of its delegate.

    In either case, it is completely up to the class when it sends a message to the delegate and what the semantics of any message are.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I execute a terminal command (like grep ) from my Objective-C Cocoa
I'm learning objective-C and Cocoa and have come across this statement: The Cocoa frameworks
I'm slowly learning Objective-C and Cocoa, and the only way I see so far
Objective-C / Cocoa: I need to load the image from a JPG file into
I see many Objective-C/Cocoa SDK apis where you can specify a target and an
I have a Cocoa/Objective-C program, I set it up the way it wants, with
I have an Objective-C/Cocoa project that incorporates a static library. That static library has
I noticed that Cocoa/Objective-C classes inherit and conform from other classes. I understand what
I've read many different things about correct memory management for cocoa/objective-c For instance ive
I'm just learning Objective-C/Cocoa programming for the Mac. All of the tutorials, books, blogs,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.