• 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: subclass overwriting superclass ivar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subclass overwriting superclass ivar


  • Subject: Re: subclass overwriting superclass ivar
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 27 May 2010 15:08:35 +0100

On 27 May 2010, at 14:42, Jean-Daniel Dupas wrote:
>>
>>
>> Is there no build support to help with these sorts of class dependencies?
>> Or have I borked my build settings somewhere?
>
>
> If MGS_B is a subclass of MGS_A , it must import the MGS_A header file (else the compiler will complain).
> If you touch a header file, all files that include it should be automatically rebuild on the next build, else this is a bug in Xcode that failed to properly resolve file dependencies.
>
> If you manage to reproduce the issue, fill a radar.
>
> WFIW, a known case where Xcode failed to properly compute dependencies is when you import your header using a macro
>
> #define MYHEADER(header) <Framework/header.h>
>
> #include MYHEADER(MGS_A.h)
>
This was the source of the problem.

While refactoring I had inserted the import statement for MGS_A in a convenience header along with several others.
This convenience header was then imported into MGS_B.h.
The compiler did not complain but it obviously affected the build system as MGS_B did not get rebuilt.

Importing  the subclass header directly into MGS_B.h gives the desired behaviour.

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.com_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >subclass overwriting superclass ivar (From: "email@hidden" <email@hidden>)
 >Re: subclass overwriting superclass ivar (From: Greg Parker <email@hidden>)
 >Re: subclass overwriting superclass ivar (From: "email@hidden" <email@hidden>)
 >Re: subclass overwriting superclass ivar (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: subclass overwriting superclass ivar
  • Next by Date: How to filter the NSOpenPanel with "Recommended Applications"
  • Previous by thread: Re: subclass overwriting superclass ivar
  • Next by thread: Re: subclass overwriting superclass ivar
  • Index(es):
    • Date
    • Thread