• 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
Sharing models between buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sharing models between buttons


  • Subject: Sharing models between buttons
  • From: Eric Scharff <email@hidden>
  • Date: Mon, 18 Aug 2003 14:50:21 -0700 (PDT)

My application has a number of boolean flags that can be set in
various ways and from various sources (menu items, check boxes,
simulations, network events, hopefully apple events).

I would like to have a mechanism where I only have one boolean
object, and when it changes any and all views that depend on
that object change at once.

What is the best way to do this with existing AppKit
functionality? For example, is there a way to get a NSMenuItem
and NSCheckbox to share the same state?

The data source model is great for complex components, but what
do you do with simple components like check boxes and radio
buttons? I'd rather not write custom controllers for every
single action...

-Eric

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.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.

  • Follow-Ups:
    • Re: Sharing models between buttons
      • From: Óscar Morales Vivó <email@hidden>
    • Re: Sharing models between buttons
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Executing AppleScript from Cocoa (with return values)
  • Next by Date: Re: Sorting array : segmentation fault
  • Previous by thread: Re: NSToolBar in NSSheet
  • Next by thread: Re: Sharing models between buttons
  • Index(es):
    • Date
    • Thread