• 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
Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"


  • Subject: Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 22 Oct 2013 13:37:45 +0700

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 (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: Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
      • From: Gideon King <email@hidden>
  • Prev by Date: Re: Deadlock during NSCache flush
  • Next by Date: Re: Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
  • Previous by thread: Re: How did I break Auto Save during -[NSApp terminate:]?
  • Next by thread: Re: Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
  • Index(es):
    • Date
    • Thread