• 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
NSColorWell's target/action inconsistency?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorWell's target/action inconsistency?


  • Subject: NSColorWell's target/action inconsistency?
  • From: Daryn <email@hidden>
  • Date: Tue, 19 Nov 2002 23:30:43 -0600

Mamasam has a few posts on this issue, but the proposed solutions seem like ugly hacks...

Here's the behavior I've observed for a color well being changed by a color panel:
1) If it's continuous, a stream of action messages is sent.
2) If it's not continuous, no actions are ever sent?

Why doesn't a color well do this?

- (void)deactivate {
[super deactivate];
if (![self isContinuous]) {
[self sendAction:[self action] to:[self target]];
}
}

Am I just overlooking something, or is this behavior really not supported by the stock class?

Daryn
_______________________________________________
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.

  • Prev by Date: Table View problems with attributed strings
  • Next by Date: Focused UI element
  • Previous by thread: More questions... [Message Framework]
  • Next by thread: Focused UI element
  • Index(es):
    • Date
    • Thread