• 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: Private ivars, not marked as IBOutlet, visible in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Private ivars, not marked as IBOutlet, visible in IB


  • Subject: Re: Private ivars, not marked as IBOutlet, visible in IB
  • From: Alexander Spohr <email@hidden>
  • Date: Sat, 13 Mar 2010 19:18:54 +0100

You are right, id <YourProtocol> is the standard.
But the question was how to get a delegate that is not visible in IB and does not produce compiler warnings.

	atze


Am 13.03.2010 um 18:55 schrieb Kevin Cathey:

> Not necessarily true. While you are free to specify a delegate as NSObject <YourProtocol>, it is not standard convention. The convention for delegates is:  id<YourProtocol>.
>
> Kevin
>
> On 13 Mar 2010, at 07:39, Alexander Spohr wrote:
>
>>
>> Am 13.03.2010 um 16:25 schrieb Joanna Carter:
>>
>>> My reason for using id is because I want to hold a delegate and call methods on it without compiler warnings. Or have I got the wrong idea there?
>>
>> Yes your idea is wrong.
>> You are free to specify NSObject <YourProtocol> *delegate;
>>
>> 	atze
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please 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
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Lynn Barton <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Joanna Carter <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Thomas Engelmeier <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Joanna Carter <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Alexander Spohr <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Roland King <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Joanna Carter <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Alexander Spohr <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Kevin Cathey <email@hidden>)

  • Prev by Date: Re: NSTimer never being deallocated
  • Next by Date: Re: NSTimer never being deallocated
  • Previous by thread: Re: Private ivars, not marked as IBOutlet, visible in IB
  • Next by thread: RE: Private ivars, not marked as IBOutlet, visible in IB
  • Index(es):
    • Date
    • Thread