FROM : Melissa J. Turner
DATE : Mon Feb 11 22:27:00 2008
Properties don't allocate storage, they simply provide a mechanism for
accessing it.
You need to declare your ivar somewhere:
@interface MyWindow : NSWindow
{
id capturing;
}
+Melissa
On Feb 11, 2008, at 13:14, Randall Meadows wrote:
> 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Mon Feb 11 22:27:00 2008
Properties don't allocate storage, they simply provide a mechanism for
accessing it.
You need to declare your ivar somewhere:
@interface MyWindow : NSWindow
{
id capturing;
}
+Melissa
On Feb 11, 2008, at 13:14, Randall Meadows wrote:
> 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Randall Meadows | Feb 11, 22:14 | |
| Melissa J. Turner | Feb 11, 22:27 | |
| Kyle Sluder | Feb 11, 22:28 | |
| Joshua Emmons | Feb 11, 22:29 | |
| Shawn Erickson | Feb 11, 22:33 | |
| j o a r | Feb 11, 22:35 | |
| Brian Christensen | Feb 11, 22:38 | |
| Randall Meadows | Feb 11, 22:56 | |
| Jens Alfke | Feb 11, 23:11 | |
| Kyle Sluder | Feb 11, 23:32 | |
| j o a r | Feb 11, 23:53 | |
| Adam P Jenkins | Feb 12, 00:33 | |
| Bill Bumgarner | Feb 12, 00:46 | |
| Wade Tregaskis | Feb 12, 00:46 | |
| Kyle Sluder | Feb 12, 01:08 | |
| Nick Zitzmann | Feb 12, 01:58 | |
| Jens Alfke | Feb 12, 04:44 | |
| Andrew Farmer | Feb 12, 06:25 | |
| Sean McBride | Feb 12, 16:58 | |
| j o a r | Feb 12, 19:48 | |
| Jens Alfke | Feb 12, 20:14 | |
| Wade Tregaskis | Feb 12, 20:35 | |
| William Squires | Feb 16, 23:35 | |
| Jean-Daniel Dupas | Feb 17, 01:03 | |
| William Squires | Feb 17, 17:59 | |
| glenn andreas | Feb 17, 18:11 | |
| Bill Bumgarner | Feb 17, 18:11 | |
| Jim Correia | Feb 17, 18:13 | |
| William Squires | Feb 17, 18:47 | |
| mmalc crawford | Feb 17, 18:57 | |
| Bill Bumgarner | Feb 17, 19:03 | |
| Jim Correia | Feb 17, 19:04 | |
| William Squires | Feb 17, 19:52 | |
| Jean-Daniel Dupas | Feb 17, 20:18 | |
| Sherm Pendley | Feb 17, 21:03 | |
| Bill Bumgarner | Feb 17, 21:09 | |
| Bill Bumgarner | Feb 17, 21:17 | |
| Jens Alfke | Feb 18, 00:06 |






Cocoa mail archive

