I am trying to convert this to Arc: - (BOOL)doSomethingWithSelector: (SEL)aSelector { [...] NSNumber *status = [ self performSelector: aSelector withObject: a withObject: b ]; [...] }
Xcode 5.0 complains: "PerformSelector may cause a leak because its selector is unknown" Is there a way to tell the compiler that "aSelector" returns an object which does NOT need to get released by the caller ? I saw something like "__autoreleasing", but don't know how to apply this in my case. Gerriet. _______________________________________________ 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