Does Anyone have any idea why this code produces this errors in OS 3.0 and not OS 2.2.1?
NSUInteger aCount = [serverBrowser.servers count];  
error: type of accessor does not match the type of property 'servers'
ServerBrowser.h is define below and serverBrowser is synthesized in .m above.
#import <Foundation/Foundation.h>
    @class ServerBrowserDelegate;
    @interface ServerBrowser : NSObject {
      NSMutableArray* servers;
      id<ServerBrowserDelegate> delegate;
    }
    @property(nonatomic,readonly) NSArray开发者_C百科* servers;
    @end
Thanks in advance for the help. Much appreciated. Jordan
It has to do with the fact that you provide the @property for the servers array as an NSArray*, but declare the backing instance variable as an NSMutableArray*. The OS 3.0 compiler may just come with stricter compiler settings than 2.2.1. Try converting to:
@property(nonatomic,readonly) NSMutableArray *servers; 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论