• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rouge compile-time errors and warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Rouge compile-time errors and warnings
      • From: Anders Totland <email@hidden>
References: 
 >Rouge compile-time errors and warnings (From: Anders Totland <email@hidden>)

  • Prev by Date: Re: NSTableView questions...
  • Next by Date: Dynamic Syntax Highlight
  • Previous by thread: Rouge compile-time errors and warnings
  • Next by thread: Re: Rouge compile-time errors and warnings
  • Index(es):
    • Date
    • Thread