• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: start in NSOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: start in NSOperation
      • From: Kyle Sluder <email@hidden>
References: 
 >start in NSOperation (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: start in NSOperation
  • Next by Date: Re: CVPixelBufferCreateWithPlanarBytes does not execute callback when released
  • Previous by thread: start in NSOperation
  • Next by thread: Re: start in NSOperation
  • Index(es):
    • Date
    • Thread