KanikaVarma / sudzc

Automatically exported from code.google.com/p/sudzc
0 stars 0 forks source link

Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate code for a wsdl containing parameters whose name starts with 'new'. 
e.g. https://api.betfair.com/global/v3/BFGlobalService.wsdl
2. Try to build the project using ARC
3.

What is the expected output? What do you see instead?
The project should build but I get errors: Property's synthesized getter 
follows Cocoa naming convention for returning 'owned' objects

What version of the product are you using? On what operating system?
Objective-C for iOS (Automatic Reference Counting)

Please provide any additional information below.
Parameters (and maybe classes and methods?) with names starting with reserved 
keywords such as new, alloc, etc should be renamed.

Original issue reported on code.google.com by francisco.samuel on 24 Jun 2012 at 6:00

GoogleCodeExporter commented 9 years ago
One option is to change declarations like
@property (retain, nonatomic) NSString* newPassword;
to
@property (retain, nonatomic, getter=theNewPassword) NSString* newPassword;

Original comment by robbie.c...@gmail.com on 28 Dec 2012 at 2:26