KanikaVarma / sudzc

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

import project files to an existing one - in NSData+Base64.m -3 issues #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Followed examples and implemented / generated code.
service is fine project is working.
but...

1. Followed the obj.mov video (found it on different url than sudzc.com) but i 
cannot import the generated code to a new project.

-lxml2 and header path set / system... framework is in place.

----------------------------------------

i get 3 errors

1st one.
in NSData+Base64.m

@implementation NSData (VQBase64)

- (id)initWithString:(NSString *)string {
    if (self = [super init]) {
        [self initWithBase64EncodedString:string]; 
///ARC RESTRICTIONS The result of a delegate init call must be immediatelly 
reurned of assigned to self
    }

    return self;
2nd one has to do with autorelease (again) ;-p
in NSData+Base64.m

+ (NSData *) dataWithBase64EncodedString:(NSString *) string {
    return [[[NSData allocWithZone:nil] initWithBase64EncodedString:string] autorelease];
///SEMANTIC ISSUE áutorelease is unavailable: not available in automatic 
refernce countig mode (2)

3d one also relater with ARC

in NSData+Base64.m

+ (NSData *) dataWithBase64EncodedString:(NSString *) string {
    return [[[NSData allocWithZone:nil] initWithBase64EncodedString:string] autorelease];
///ARC Restrictons forbids explicit message send of áutorelease'

Can you please provide us with a new video, documentation or an answer of what 
we we are doing wrong???
i believe it is something simple but i dont get it since i am new to all this 
and i have a little experience on C objective !

Thanks in advance
Alexandros 

Original issue reported on code.google.com by asoulaha...@gmail.com on 27 Sep 2012 at 8:57

GoogleCodeExporter commented 9 years ago
if you switch off the ARC from build settings of the project
the problem goes away, however i would like to be able to modify the source 
code produced by sudzc
so it would compile with ARC option ON.

Thank you very much and looking forward for your response.

Original comment by asoulaha...@gmail.com on 27 Sep 2012 at 12:14