Re: Some Cocoa Objective-C problems - please help
Re: Some Cocoa Objective-C problems - please help
- Subject: Re: Some Cocoa Objective-C problems - please help
- From: Matt Gemmell <email@hidden>
- Date: Thu, 26 Jun 2003 16:34:13 +0100
On 26/6/03 at 4:17 pm, j o a r said:
>
You should not have to do this. Think about the MVC design pattern,
>
your view (the toolbar) should only reflect what you already know
>
from the model layer of your application, ie. you should know the
>
state of the toolbar without having to look at the toolbar item.
In addition, there's this method:
- (BOOL)validateToolbarItem:(NSToolbarItem *)theItem
It's called whenever the window updates; items can (and should) be
enabled or disabled appropriately there.
Cheers,
-Matt
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.