Re: Rouge compile-time errors and warnings
Re: Rouge compile-time errors and warnings
- Subject: Re: Rouge compile-time errors and warnings
- From: Jens Bjerrehuus <email@hidden>
- Date: Sun, 7 Sep 2003 10:07:15 +0200
Hello Anders,
It's hard to tell what's wrong without seeing the source for these
errors. But I'm quite sure your application doesn't build
correctlywith the compiler finding 62 errors during compilation.
Generally, I'd say you should handle every warning (and definitely
every error) the compiler reports to you.
As for one thing that is concretely wrong in this:
lxrdag 6. sep 2003 kl. 22:19 skrev Anders Totland:
does not respond to setState:" and "syntax error, found 'alloc'" in
the kind of line: "myObject = [[[myClass alloc] init] retain];", same
line further down triggers the error "syntax error, found 'retain'"
You shouldn't retain that object as you already own it because you just
alloc'ed it. Any object that you acquire through alloc is already
retained for you and it is your responsibility to later release that
object. See e.g. this:
http://www.stepwise.com/Articles/Technical/2001-03-11.01.html for a
short introduction to memory management in Cocoa.
lxrdag 6. sep 2003 kl. 22:19 skrev Anders Totland:
This is PB 2.0.1 July 2002, with gcc v3.1
There's a newer release from December last year. You can get that from
the developer site at Apple.
Kind regards
Jens
_______________________________________________
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.