Re: start in NSOperation
Re: start in NSOperation
- Subject: Re: start in NSOperation
- From: Roland King <email@hidden>
- Date: Mon, 06 Jan 2014 18:39:05 +0800
>
> When I changed the property from "start" to "stArt" then all became fine. Obviously "start" is a word one should not use with NSOperations (no idea why).
>
Because start is a defined method on NSOperation which starts the operation, it's in the documentation, go take a look. It takes no parameters and returns void, but since the return type isn't part of the signature of a method, overriding it with start which takes no parameters and returns an integer is allowed, so no error. However when the NSOperation was started, by calling its start method, it returned your number, which was ignored and didn't do anything because you'd overridden the start method.
_______________________________________________
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