On 18 Oct 2011, at 00:29, glenn andreas wrote:
>
> On Oct 16, 2011, at 1:58 AM, Gerriet M. Denkmann wrote:
>
>> I have this code:
>>
>> for( id aThing in someArray )
>> {
>> if ( [ aThing respondsToSelector: @selector(setTitle:) ] )
>> {
>> [ self replaceIn
On Oct 16, 2011, at 1:58 AM, Gerriet M. Denkmann wrote:
> I have this code:
>
> for( id aThing in someArray )
> {
> if ( [ aThing respondsToSelector: @selector(setTitle:) ] )
> {
> [ self replaceIn: aThing
> rea
On Oct 17, 2011, at 10:19 AM, Gerriet M. Denkmann wrote:
> I understand this. So I tried to tell the compiler that the passed selector
> is not like copy:
>
> - (void)replaceIn: thing readSelector:
> (__attribute__((ns_returns_not_retained)) SEL)selectorIn
> {
> NSString *key = [ thing
On 18 Oct 2011, at 00:05, David Duncan wrote:
> On Oct 15, 2011, at 11:58 PM, Gerriet M. Denkmann wrote:
>
>> I have this code:
>>
>> for( id aThing in someArray )
>> {
>> if ( [ aThing respondsToSelector: @selector(setTitle:) ] )
>> {
>> [ self replaceIn:
On Oct 15, 2011, at 11:58 PM, Gerriet M. Denkmann wrote:
> I have this code:
>
> for( id aThing in someArray )
> {
> if ( [ aThing respondsToSelector: @selector(setTitle:) ] )
> {
> [ self replaceIn: aThing
> rea
I think you understand why the warning is coming up.
But I would suggest this is a factorisation too far. Do you need to employ this
(to my eyes, rather strange) form of code so often that it is necessary to
factor out the selector in/out code in the way you have? Why not just move the
performS
On Oct 16, 2011, at 00:23 , Gerriet M. Denkmann wrote:
> I have this code:
>
> for( id aThing in someArray )
> {
> if ( [ aThing respondsToSelector: @selector(setTitle:) ] )
> {
> [ self replaceIn: aThing
> readS
I have this code:
for( id aThing in someArray )
{
if ( [ aThing respondsToSelector: @selector(setTitle:) ] )
{
[ self replaceIn: aThing
readSelector: @selector(title)
w
I have this code:
for( id aThing in someArray )
{
if ( [ aThing respondsToSelector: @selector(setTitle:) ] )
{
[ self replaceIn: aThing
readSelector: @selector(title)
w