On Feb 15, 2012, at 4:41 PM, koko wrote: > Candidate function not viable: 'this' argument has type 'const BPreferences', > but method is not marked const
Blocks can’t modify variables in the enclosing scope unless the variables are marked ‘__block’. In C++ code, I suppose that extends to interpreting those variables as ‘const’, which makes sense, otherwise you could call a method from the block that could mutate the variable. If ‘prefs’ is a local variable, try prefixing the declaration with ‘__block’. —Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com