• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Some Cocoa Objective-C problems - please help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Some Cocoa Objective-C problems - please help (From: j o a r <email@hidden>)

  • Prev by Date: Re: Some Cocoa Objective-C problems - please help
  • Next by Date: Alternative to gestaltSystemVersion??
  • Previous by thread: Re: Some Cocoa Objective-C problems - please help
  • Next by thread: Re: Some Cocoa Objective-C problems - please help
  • Index(es):
    • Date
    • Thread