• 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: warning: C++ constructors and destructors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning: C++ constructors and destructors


  • Subject: Re: warning: C++ constructors and destructors
  • From: Tim Hart <email@hidden>
  • Date: Wed, 15 Feb 2006 15:09:39 -0600

Simon,

Declare your instance variables to C++ classes as pointers to instances instead. Then, in your init method, call 'new' as appropriate. Be sure to call 'free' in your '-dealloc' method. That will quiet the warnings.

Tim

On Wednesday, February 15, 2006, at 03:03PM, Simon Brée <email@hidden> wrote:

>Hi All,
>
>I've got this warnings when compiling :
>
>/Users/simon/Projets/Magnéto/SBObject/SBAudioFile.h:30: warning: type
>`CAStreamBasicDescription' has a user-defined constructor
>/Users/simon/Projets/Magnéto/SBObject/SBAudioFile.h:30: warning: C++
>constructors and destructors will not be invoked for Objective-C fields
>
>My application works anyway, but does anyone know how to solve it?
>
>Thanks,
>
>Simon
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Cocoa-dev mailing list      (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: warning: C++ constructors and destructors
      • From: John Stiles <email@hidden>
References: 
 >warning: C++ constructors and destructors (From: Simon Brée <email@hidden>)

  • Prev by Date: Re: Strange file system behavior
  • Next by Date: Re: Strange file system behavior
  • Previous by thread: warning: C++ constructors and destructors
  • Next by thread: Re: warning: C++ constructors and destructors
  • Index(es):
    • Date
    • Thread