• 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
NSColorPicker and RunModalForWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorPicker and RunModalForWindow


  • Subject: NSColorPicker and RunModalForWindow
  • From: Robert Clair <email@hidden>
  • Date: Tue, 28 Sep 2004 09:41:36 -0400

I have a custom NSColorPicker that I add to the system color picker. Its
view has some sliders and buttons and a subview the processes mouse down
events. Everything works perfectly in normal operation.

I also have a panel with a colorwell in it. I use it as a modal panel:

[NSApp runModalForWindow: myPanel];

at a certain point to force a color choice.

The system color pickers work properly in this situation - clicking on the
colorwell summons the system color panel and all the various widgets on the
system provided pickers work properly. But my custom picker only half works.
The subview gets and properly processes the mouse down events. The sliders
and buttons enabled - you can move the sliders and you can change which
radio button is selected. But the corresponding action routines are never called.
The target of the sliders and buttons is my custom picker which is the
nib's owner.


I haven't tried redoing the panel as a sheet yet, but short of that does
anyone have any suggestions ?

Thanx

Bob

_______________________________________________
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


  • Prev by Date: Re: how can I do a list of views?
  • Next by Date: Re: updating menuitems when not first responder
  • Previous by thread: Re: how can I do a list of views?
  • Next by thread: Carbon sheet making my Cocoa window unmovable
  • Index(es):
    • Date
    • Thread