Re: retain not found in protocol warning?
Re: retain not found in protocol warning?
- Subject: Re: retain not found in protocol warning?
- From: Damien Bobillot <email@hidden>
- Date: Wed, 12 Jul 2006 19:43:55 +0200
Marc Respass wrote : My app uses a plugin architecture. I load the bundle and retain the instance. When I invoke -retain on my instance, I get a warning '-retain not found in protocol'. Since I've never done this before now, I'm not sure what to think. I know that if the instance subclasses NSObject, it will respond to retain but I am trying to eliminate all warnings and this one is bugging me. Here's the lines that cause the warning. Any tips are appreciated.
id <MyPluginProtocol> bundle = [self loadBundleAtPath:pluginPath]; [bundle retain];
Try the types "id <MyPluginProtocol, NSObject>", or "NSObject <MyPluginProtocol>", or make MyPluginProtocol inheriting from the NSObject protocol :
@protocol MyPluginProtocol <NSObject> ... @end
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden