Re: Compiler Error on Class Method?
Re: Compiler Error on Class Method?
- Subject: Re: Compiler Error on Class Method?
- From: Keary Suska <email@hidden>
- Date: Wed, 21 Aug 2013 14:42:58 -0600
On Aug 21, 2013, at 10:58 AM, Dave wrote:
> Implicit conversion of Objective-C pointer type 'Class' to C pointer type 'struct objc_class *' requires a bridged cast
>
> on the line marked below:
>
>
> + (NSString*) cacheDirectoryPath
> {
> NSString* myReturnValue; //**************** Error
>
> [self.pDeveloperUtilities logEntryWithMethodName:@"+ cacheDirectoryPath",nil];
Are you sure the problem isn't with the line above? You know that "self" in this case is the class, and not any instance of a class, so dot notation would mean trying to directly access the class struct rather than executing a method, I would tend to think. In any case, dot notation is probably not what you want anyway.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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