FROM : John C. Randolph
DATE : Fri Jan 03 17:07:02 2003
On Friday, January 3, 2003, at 04:36 AM, Finlay Dobbie wrote:
>
> On Friday, January 3, 2003, at 12:18 am, John C. Randolph wrote:
>
>> @interface MyColor : NSObject
>> {
>> NSColor *realColor;
>> // whatever ivars you want to keep
>> }
>>
>> @end
>
> If you don't want/need to keep ivars, and just want to add a few
> convenience methods, categories are the way to go.
Finlay's right. My answer presumed that you need to keep additional
state that an NSColor normally wouldn't.
-jcr
John C. Randolph <<email_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
DATE : Fri Jan 03 17:07:02 2003
On Friday, January 3, 2003, at 04:36 AM, Finlay Dobbie wrote:
>
> On Friday, January 3, 2003, at 12:18 am, John C. Randolph wrote:
>
>> @interface MyColor : NSObject
>> {
>> NSColor *realColor;
>> // whatever ivars you want to keep
>> }
>>
>> @end
>
> If you don't want/need to keep ivars, and just want to add a few
> convenience methods, categories are the way to go.
Finlay's right. My answer presumed that you need to keep additional
state that an NSColor normally wouldn't.
-jcr
John C. Randolph <<email_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
| Related mails | Author | Date |
|---|---|---|
| James Gregurich | Jan 2, 16:07 | |
| John C. Randolph | Jan 2, 16:19 | |
| James Gregurich | Jan 2, 19:03 | |
| Finlay Dobbie | Jan 3, 04:37 | |
| James Gregurich | Jan 3, 05:56 | |
| Finlay Dobbie | Jan 3, 06:21 | |
| Clark S. Cox III | Jan 3, 06:21 | |
| Mike Ferris | Jan 3, 09:44 | |
| John C. Randolph | Jan 3, 17:04 | |
| John C. Randolph | Jan 3, 17:07 | |
| James Gregurich | Jan 3, 19:02 | |
| Finlay Dobbie | Jan 4, 04:21 | |
| Eric Peyton | Jan 4, 05:53 | |
| Gregory Seidman | Jan 4, 07:55 | |
| Kenneth C. Dyke | Jan 4, 12:26 | |
| Mike Ferris | Jan 6, 08:12 |






Cocoa mail archive

