Re: Property Declared in a Category and Sent to id

2012-12-17 Thread Andreas Grosam
On 17.12.2012, at 13:14, Roland King wrote: > > On 17 Dec, 2012, at 7:20 PM, Andreas Grosam wrote: > >> >> On 17.12.2012, at 11:25, Andreas Grosam wrote: >> >>> I would like to use the property access syntax for a (readonly) property >>> which is defined in a category and sent to an object

Re: Property Declared in a Category and Sent to id

2012-12-17 Thread Roland King
On 17 Dec, 2012, at 7:20 PM, Andreas Grosam wrote: > > On 17.12.2012, at 11:25, Andreas Grosam wrote: > >> I would like to use the property access syntax for a (readonly) property >> which is defined in a category and sent to an object whose compile type info >> is just "id". Use case: >> >

Re: Property Declared in a Category and Sent to id

2012-12-17 Thread Andreas Grosam
On 17.12.2012, at 11:25, Andreas Grosam wrote: > I would like to use the property access syntax for a (readonly) property > which is defined in a category and sent to an object whose compile type info > is just "id". Use case: > > id obj = …; > if (obj.isFoo) { // <== error: property 'isFoo'