• 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
@property problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

@property problem


  • Subject: @property problem
  • From: Randall Meadows <email@hidden>
  • Date: Mon, 11 Feb 2008 14:14:47 -0700

So, I'm trying to be a good little Obj-C 2.0 programmer and use these newfangled properties. Xcode doesn't seem to appreciate my attempts.

I've boiled the problem down to this snippet:

@interface MyWindow : NSWindow
{
}
@property(readwrite) BOOL	capturing;

@end

@implementation MyWindow

@synthesize capturing;

@end

When I compile that, I get the error:

error: synthesized property 'capturing' must either be named the same as a compatible ivar or must explicitly name an ivar

AFAICT, "capturing" IS the name of my ivar. What is it *really* complaining about? What did I do wrong?


Thanks! randy _______________________________________________

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


  • Follow-Ups:
    • Re: @property problem
      • From: Randall Meadows <email@hidden>
    • Re: @property problem
      • From: Joshua Emmons <email@hidden>
    • Re: @property problem
      • From: "Kyle Sluder" <email@hidden>
    • Re: @property problem
      • From: "Melissa J. Turner" <email@hidden>
  • Prev by Date: Re: [ANN] New Core Data Tutorials
  • Next by Date: Re: @property problem
  • Previous by thread: Re: Here is code to Convert RGB <-> HSB
  • Next by thread: Re: @property problem
  • Index(es):
    • Date
    • Thread