Re: Compile error using @synchronized on methods that return values
Re: Compile error using @synchronized on methods that return values
- Subject: Re: Compile error using @synchronized on methods that return values
- From: "Adam R. Maxwell" <email@hidden>
- Date: Sun, 08 Nov 2009 07:24:43 -0800
On Nov 8, 2009, at 3:03 AM, Ken Tozier wrote:
> "Control reaches end of non-void function"
>
> I Googled for "Objective-C accessors and @synchrinized" which seemed to indicate that the following was the correct way to handle it
>
> - (id) someMethod
> {
> @synchronized(self)
> {
> return [somevalue autoreleae];
> }
> }
>
> But I get the above error whenever I try to do it that way. Here's one of the actual methods with and without the @synchronized directive
http://lists.apple.com/archives/Xcode-users/2009/Aug/msg00230.html
More info can be found using google:
http://www.google.com/search?hl=en&q=site:lists.apple.com+@synchronized+Control+reaches+end+of+non-void+function&aq=f&oq=&aqi=
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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