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

  • SEARCH
  • Home
  • 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 8337825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:24:22+00:00 2026-06-09T04:24:22+00:00

When creating delegates in Objective-C, assume delegate: id <DelegateName> delegate , what is the

  • 0

When creating delegates in Objective-C, assume delegate: id <DelegateName> delegate, what is the delegate‘s type supposed to be? So running po delegete or po self.delegate in LLDB, what is the expected outcome?

If its expected to be DelegateName, and it wasn’t how would you change it manually?

EDIT:

@protocol NavigationBarDelegate
@optional
– (void)titleViewClicked:(BOOL)titleClicked;
@end

po output in LLDB:

(lldb) po self.delegate
(objc_object *) $1 = 0x073d0840 <UINavigationController: 0x73d0840>

As a result, the delegate is being sent to a UINavigationController as opposed to the intended class.

  • 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-06-09T04:24:24+00:00Added an answer on June 9, 2026 at 4:24 am

    The type is id so it can be any Objective-C object. The <DelegateName> notation means that the object will conform to the DelegateName protocol, but that does not affect its type.

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

Sidebar

Related Questions

I am creating a UIActionSheet on actionSheet:clickedButtonAtIndex delegate method. - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex
I'm creating a styled QTreeView using double-dispatch to resolve specific delegate for data items,
I am creating an app using jQuery Mobile and PhoneGap. I delegate a button
I'm having problems creating a collection of delegate using reflection and generics. I'm trying
I am using ASIHTTPRequest in an Objective-C Mac application. I am creating a class
I'm creating a simple code generator with delegates. Why am I getting this error
I'm working on creating my own DI framework that creates delegate factories as a
I am creating a Rock Paper Scissors game in Objective-C and currently I'm having
I'm creating an application in Objective-C and I need to get the metadata from
Creating a class at runtime is done as follows: klass = Class.new superclass, &block

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.