• 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
NSToolbar(item) quirk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSToolbar(item) quirk


  • Subject: NSToolbar(item) quirk
  • From: Ed <email@hidden>
  • Date: Thu, 3 Feb 2005 16:33:10 +0000

Hi all!

I've got a Cocoa Multi-Document application (standard project kind),
and each of my MyDocuments has a toolbar on its associated window. To
ensure my toolbar button only becomes active when there is text
selected in an NSTextView in the window, I'm using simple validation
(If the selection length is 0, then it's not active, essentially).
However, when I have multiple documents open, if I select text in one,
all of the ToolbarItems of that type in the application become
activated! Not only that, but I can actually click on them (though if
I click on the window, they stop becoming deactivated, as they should
be)!

Has anyone come across this before and have an elegant solution, or I
am I just going to have to give each button its own string identifier
(using a random number gen, perhaps?)

Thanks,

ed
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSToolbar(item) quirk
      • From: Scott Anguish <email@hidden>
    • Re: NSToolbar(item) quirk
      • From: Evan Schoenberg <email@hidden>
  • Prev by Date: Re: NSCalendarDate picker widget?
  • Next by Date: Re: Stop dragging my <NSWindow> around
  • Previous by thread: Table selectionIndexes not tracking bound model updates
  • Next by thread: Re: NSToolbar(item) quirk
  • Index(es):
    • Date
    • Thread