Re: initializers in Categories?
Re: initializers in Categories?
- Subject: Re: initializers in Categories?
- From: "A.M." <email@hidden>
- Date: Thu, 13 Jul 2006 15:33:51 -0400 (EDT)
On Thu, July 13, 2006 3:07 pm, Rob Ross wrote:
> Can a category declare a new initializer for an object?
>
>
> ie,
>
> @interface Foo (MyCategory)
>
>
> - (id) initWithSomeNewArgumentList:(Bar *)bar :(Baz *)baz;
>
>
> @end
Yes. You can essentially repoint arbitrary methods with a category, but
that is almost certainly not what you want. What is it that you wish to
accomplish?
-M
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden