Convert to Objective-C ARC Syntax Error

13 views
Skip to first unread message

Brad Stone

unread,
Mar 31, 2012, 6:39:12 PM3/31/12
to cocoa-dev cocoa-dev
I used "Edit->Refactor->Convert to Objective-C ARC...". My app works fine but I'm getting a syntax error in Apple's header files. They're all in the same place: @private.

There error is '__strong' only applies to objective-c object or block pointer types; type here is 'void *'

Here's an example:

/* Quartz Composer Composition Renderer */
@interface QCRenderer : NSObject <QCCompositionRenderer>
{
@private
__strong void* _QCRendererPrivate;
}


I'm thinking I should remove the __strong from these but I'm wondering why __strong was added here anyway and I'm wary about touching Apple's code.

I'm at a loss.

Thanks

The same things happens in QCPlugIn.h, QCRendered.h, QCCompositionLayer.h, QCView.h, QCCompositionParameterView.h, QCCompositionPickerView.h, QCCompositionPickerPanel.h, QCPLugInViewController.h, IKImageBrowserView.h, IKImageBrowswerCell.h, IKImageBrowserView.h
_______________________________________________

Cocoa-dev mailing list (Coco...@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev-garchive-98506%40googlegroups.com

This email sent to cocoa-dev-ga...@googlegroups.com

Dave Zarzycki

unread,
Apr 1, 2012, 7:16:25 PM4/1/12
to Brad Stone, cocoa-dev cocoa-dev
Brad,

This looks similar to Radar 10434539. Let me know if this works: simplify the header includes in your code to just #import <Quartz/Quartz.h> and just link against Quartz. If your code is already doing this, then let us know.

Thanks!

davez

> https://lists.apple.com/mailman/options/cocoa-dev/zarzycki%40apple.com
>
> This email sent to zarz...@apple.com

Reply all
Reply to author
Forward
0 new messages