- (id <ViewOrdersService>)viewOrdersService {
return [[[ViewOrdersAccessor alloc] init] autorelease];
}
…
2) ---
- (id <AlertsService>)alertsService {
return [[[AlertsSAXAccessor alloc] init] autorelease];
}
…
Why not use:
1) - (ViewOrdersAccessor *) … and
2) - (AlertsSAXAccessor *) ?
Is there an advantage to using id <protocol>?
Initially it appears a bit more complicated to work with protocols this versus strong class typing.
Ric.