Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 433459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:10:35+00:00 2026-05-12T20:10:35+00:00

I have a preferences panel in my application in which I have a NSColorWell

  • 0

I have a preferences panel in my application in which I have a NSColorWell for setting some background color and a button which opens an NSFontPanel for choosing a font.

The behavior I want to have is the following:

  • When I click on the NSColorWell then drag over some color in the panel, I want it to change the background color in my “preview” area as I drag.

  • When I click on the “Change font…” button, I show my NSFontPanel and as I choose a font it should change in my “preview” area too. Say I click on the color button of the NSFontPanel, I want to change the color of my font.

In essence I’m trying to make both color panels (although from what I’ve seen there’s really only one shared panel per app) work independently.

Right now, say I have the font and color panels opened. When I click on the color well on my window it activates, then if I click on the color button in the font panel the color does not affect the font but rather the background, as the color well stays activated and because I registered for color change notifications in my controller class.

Could someone give me an example of a specific way to code this kind of behavior? There seems to be a bunch of different ways to make the NSFontPanel and NSColorPanel show up (NSFontPanel or NSFontManager?), as well as many ways to handle the events coming from the panels themselves (notifications? delegates (on the NSFontManager or NSFontPanel)? inserting the controller into the responder chain?). I haven’t found any guidelines on a ideal way to handle more than one color sources at once and I’m a little lost.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:10:35+00:00Added an answer on May 12, 2026 at 8:10 pm

    The color picker mechanism is specifically designed so that you can “activate” multiple color wells, then set their color simultaneously. I believe the reason why the font panel’s color button doesn’t “let go” of the color picker is because it’s apparently not actually a “color well”. I haven’t noticed this behavior directly but it’s easily reproducible with a simple fresh xib with a color well and a standard text view.

    Essentially, you can click both the well and the font color and both the well and selected text will change to the picked color. You can even turn off the well and only the text will change. You can’t, however, make the font panel “let go” of the color picker until you close the font panel.

    I’d call this a bug: http://bugreport.apple.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application, I have some color settings, font settings and a Dictionary containing
I am creating application where in i have used preferences for changing font settings.
I have some questions about the registry. We have Preferences p = Preferences.userRoot(); If
I have a preferences page, where some radio buttons are controlled by a RadioGroupFieldEditor
I would like some of my preferences to have icons, like the Settings app.
I have other pages within my app preferences which are stored as separate files
I have some table: table ASK with idask table PREFERENCES with idpref , fk_idask
Windows 7 and Windows Vista have a Region and Language control panel which contains
I have a preferences pane that uses the Shared User Defaults Controller, which reading
I have an application which resides in menu bar, pretty much like this one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.