Re: -performSelector: exception... in one build configuration
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