• 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: -performSelector: exception... in one build configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -performSelector: exception... in one build configuration


  • Subject: Re: -performSelector: exception... in one build configuration
  • From: Christiaan Hofman <email@hidden>
  • Date: Fri, 04 Nov 2011 17:26:38 +0100

On Nov 4, 2011, at 17:18, Scott Ribe wrote:

> On Nov 4, 2011, at 10:11 AM, Christiaan Hofman wrote:
>
>> This should not work. It fails for me with an error saying "Initializer element is not a constant".
>
> I don't understand that. @selector is a compiler directive, not a function.
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice


Have you tried? I have.

But what does the compiler make of it? I am pretty sure that the compiler compiles @selector(foo) basically as sel_getUid("foo"), just as the compiler translates [anObject foo] basically in terms of calling objc_sendMessage (or something). So it's essentially equivalent to using a function. And that's not allowed.

Christiaan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >-performSelector: exception... in one build configuration (From: Steve Christensen <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Michael Babin <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Steve Christensen <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Steve Christensen <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Christiaan Hofman <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Steve Christensen <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Christiaan Hofman <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Steve Christensen <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Christiaan Hofman <email@hidden>)
 >Re: -performSelector: exception... in one build configuration (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: -performSelector: exception... in one build configuration
  • Next by Date: Re: Learning the Interface Builder
  • Previous by thread: Re: -performSelector: exception... in one build configuration
  • Next by thread: Re: -performSelector: exception... in one build configuration
  • Index(es):
    • Date
    • Thread