Typeing
Typeing
- Subject: Typeing
- From: David Remahl <email@hidden>
- Date: Wed, 27 Jun 2001 11:30:09 +0200
I have the following statement:
NSEnumerator* enum = [[[NSApp delegate] arrayOfObjects]
objectEnumerator];
I know that my application delegate responds to arrayOfObjects, but the
compiler doesn't [know what object is my app delegate], so it gives me
this warning:
warning: cannot find method
warning: return type for 'arrayOfObjects' defaults to id
The code doesn't break, since id is fine for this purpose, but the
warnings are annoying and hide the real warnings...
So, how do I statically type [NSApp delegate] so that the compiler
understands what I am trying to do?
/ david