Re: Toolbar code in separate Controller?
Re: Toolbar code in separate Controller?
- Subject: Re: Toolbar code in separate Controller?
- From: Graham Cox <email@hidden>
- Date: Tue, 15 Jul 2008 23:51:30 +1000
On 15 Jul 2008, at 11:33 pm, Graham Cox wrote:
Back to NSToolbarItemValidation .. it is not a "type of"
MyDocument. So, based on the above, I should not call it a
"category" of MyDocument. So what do I call it? Is it an
"extension" of MyDocument?
No, it's a category on MyDocument.
Actually, I should clarify that. It's already a category on NSObject,
so there's no need to redeclare it as a method in your own category. I
should be harmless to do so, but since Apple have already declared it,
you don't need to.
Just implement the method in MyDocument.m and all will be well.
Graham
_______________________________________________
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