Re: drawRect using a Category
Re: drawRect using a Category
- Subject: Re: drawRect using a Category
- From: Per Bull Holmen <email@hidden>
- Date: Sun, 01 Apr 2012 11:25:59 +0200
Den 03:46 1. april 2012 skrev Peter Teeson <email@hidden> følgende:
> Thanks very much for your input guys.
>
> David:
> I had carefully read the Categories and Extensions page in OBJ-C Programming Language.
> And, based on the first paragraph, assumed I could add functionality to drawRect for my particular case.
You can use categories to add functionality to existing *classes*, but
you shouldn't use it to override or replace *methods* that are already
implemented in those classes.
Per
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden