IBOutlet id
IBOutlet id
- Subject: IBOutlet id
- From: Daniel Todd Currie <email@hidden>
- Date: Fri, 20 Feb 2004 23:57:43 -0800
I have a couple of custom classes for which I am creating instances in
Interface Builder. I declare these classes as follows, and then link
them up in IB:
IBOutlet id anNSWindowSubclass;
The problem is that all of the messages I send to anNSWindowSubclass
yield compiler warnings (which aren't a problem, they are just
annoying):
warning: cannot find method `-updateLocations'; return type `id'
assumed
This is understandable, since it doesn't know the class of the object
to which these messages are being sent.
What I would like to do is the following declaration:
IBOutlet NSWindowSubclass *anNSWindowSubclass;
But when I declare the instance that way, I get this error:
error: parse error before "NSWindowSubclass"
Why do I get this error? What have others done differently to avoid
this problem?
Thanks,
-- Daniel Currie
_______________________________________________
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.