> Le 2 août 2016 à 07:11, Trygve Inda a écrit :
>
> I have a class where I would like to have a method name like:
>
> -(void)setMaximumOperations:(NSInteger)operations
> {
> [[self operationQueue] setMaxConcurrentOperationCount:operations];
>
> ... Do other stuff ...
> }
>
> Is this a bad
On Aug 1, 2016, at 22:11 , Trygve Inda wrote:
>
> Is this a bad idea?
No, it’s harmless. It’s possible that the compiler will report it as a
property, but remember that it’s Obj-C and there were no syntactic properties
until a mere 9 years ago. For backward compatibility with code back to the
I have a class where I would like to have a method name like:
-(void)setMaximumOperations:(NSInteger)operations
{
[[self operationQueue] setMaxConcurrentOperationCount:operations];
... Do other stuff ...
}
Is this a bad idea? There is no property called "maximumOperations" in my
class but u