• 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: OBJ-C question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OBJ-C question


  • Subject: Re: OBJ-C question
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Fri, 16 Apr 2004 17:48:34 -0700

How messy. I think I will stick to formal protocols :)

Mike







On Apr 16, 2004, at 4:57 PM, Ondra Cada wrote:

Mike,

On 17.4.2004, at 1:22, Mike R. Manzano wrote:

If I have an informal protocol, and am sending a message conforming to
the protocol to an object of type id, is it normal to have warning
messages appear during builds?

No. Looks like you didn't give the informal protocol declaration to the
compiler, or there's some other trick (in XCode, it seems often old
versions of headers are used until you clean, sigh!).

Anyway:

10 /tmp> <q.m
#import <Foundation/Foundation.h>
@interface NSString (InformalProtocol)
-(void)fooBar;
@end
void func() {
id o=nil;
[o fooBar];
}
11 /tmp> cc -c -Wall q.m
12 /tmp>

---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: OBJ-C question
      • From: Ondra Cada <email@hidden>
References: 
 >OBJ-C question (From: "Mike R. Manzano" <email@hidden>)
 >Re: OBJ-C question (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Removing *other* app default?!?
  • Next by Date: Re: nstableColumn bindings and cells
  • Previous by thread: Re: OBJ-C question
  • Next by thread: Re: OBJ-C question
  • Index(es):
    • Date
    • Thread