• 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: Help with recursive includes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with recursive includes


  • Subject: Re: Help with recursive includes
  • From: Aaron Wallis <email@hidden>
  • Date: Sun, 22 Feb 2009 11:51:19 +1100

I think i've found a work around, I altered the method to accept 'id' instead of 'TMPSTManagedFile' like so:
-(NSString *)saveFileToStore:(id)tFile forDate:(NSDate *)tDate;


I no longer get the error, but it's not an ideal compromise in the long run...
If anyone has any other suggestions, I'd love to hear them


Cheers

On 22/02/2009, at 11:16 AM, Aaron Wallis wrote:

Yeah, the header file is being imported in the .m file

I tried moving the static out of the implementation, but I still get the errors...
strange one 'eh


On 22/02/2009, at 11:11 AM, Kiel Gillard wrote:


On 22/02/2009, at 10:27 AM, Aaron Wallis wrote:

if I remove the #import "TMPSTManagedFile.h" from the header of the class and change it to @class TMPSTManagedFile the error goes away, and the application *would* run fine, if I didn't start getting errors caused from the ObjC 2.0 style property accessors like:
TMPSTManagedFile *tFile = [blah blah];
NSLog(@"%@", tFile.name);


In which case I start getting errors like:
Error: request for member 'name' in something not a structure or union


Any ideas?

Are you #importing the header file for "TMPSTManagedFile" in the .m file?


Towards the start of TMPSTLocalStore.m, you're declaring a static pointer within the @implementation. I didn't think you could do this, I thought you could only declare a static variable outside of the @implementation in the .m file.

Kiel

_______________________________________________

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

_______________________________________________

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: 
 >Help with recursive includes (From: Aaron Wallis <email@hidden>)
 >Re: Help with recursive includes (From: Kiel Gillard <email@hidden>)
 >Re: Help with recursive includes (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Re: Help with recursive includes
  • Next by Date: Re: Help with recursive includes
  • Previous by thread: Re: Help with recursive includes
  • Next by thread: Re: Help with recursive includes
  • Index(es):
    • Date
    • Thread