On Jun 6, 2015, at 17:04 , Cosmo wrote:
>
> Sorry. I was inaccurate in my language. I’m actually calling these methods on
> the superclass, not on instances of it.
What you’re really doing here is a combination of two standard Obj-C patterns:
1. Singleton pattern. You’re using the class object
On Jun 6, 2015, at 2:35 PM, Cosmo wrote:
>
> I’m trying to send messages from a class to one of its subclasses. I have a
> method that returns the class I want to forward to. If I use it in the
> following manner, it works:
>
> + (void)logout
> {
>// subclasses handle it
>[[self classT
Sorry. I was inaccurate in my language. I’m actually calling these methods on
the superclass, not on instances of it.
> On Jun 6, 2015, at 4:58 PM, Graham Cox wrote:
>
>
>> On 7 Jun 2015, at 8:47 am, Cosmo wrote:
>>
>> I should have explained that I’m calling these methods on instances of th
> On 7 Jun 2015, at 8:47 am, Cosmo wrote:
>
> I should have explained that I’m calling these methods on instances of the
> superclass, not the subclass, so inheritance doesn’t work.
But you have written class methods, so instances doesn’t come into it. Seems
possible that there’s a fundament
Thanks for the response.
> On Jun 6, 2015, at 3:15 PM, Quincey Morris
> wrote:
>
> On Jun 6, 2015, at 14:35 , Cosmo wrote:
>>
>> Can somebody explain to me why I’m getting this different behavior. Is there
>> anything I can do to achieve my goal?
>
> The most likely immediate reason is that
On Jun 6, 2015, at 14:35 , Cosmo wrote:
>
> Can somebody explain to me why I’m getting this different behavior. Is there
> anything I can do to achieve my goal?
The most likely immediate reason is that the class returned by '[self
classToUseForBackend]’ doesn’t actually implement a method call
I’m trying to send messages from a class to one of its subclasses. I have a
method that returns the class I want to forward to. If I use it in the
following manner, it works:
+ (void)logout
{
// subclasses handle it
[[self classToUseForBackend] logout];
}
By setting breakpoints in this