That doesn't work, because it then complains: "warning: instance method 'style' is being used on 'Class' which is not in the root class"
Looks like I have no choice but to change the method name for the class method at least :( --Graham On 14/10/2011, at 12:51 PM, Kyle Sluder wrote: > On Thu, Oct 13, 2011 at 6:32 PM, Graham Cox <[email protected]> wrote: >> The object in question is actually a class, where it has a class method >> +style. But the class is passed as the 'object' parameter of a notification, >> which has type id. How do I typecast that to the precise class type I'm >> expecting? Using (MyClass*) doesn't work because that is an instance. It's >> probably obvious, but I'm not stumbling upon it... > > Cast it to Class. There's no way to specify "the type of an instance > of the metaclass MyClass." > > --Kyle Sluder _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
