Re: Action isn't sent
Re: Action isn't sent
- Subject: Re: Action isn't sent
- From: Wilhelm Phillips <email@hidden>
- Date: Mon, 12 Jul 2004 23:36:53 -0700
Following up, I am experiencing the same problem.
I wrote a small app to test out the same thing.
I have my custom colorWellCell in myTableView in myWindow. When I wire
everything up in IB, all the code executes perfectly.
However, if I move myTableView to a sheet attached to myWindow, and
rewire everything, the "color changing" part of the code never gets
called.
So, this must be something to do with targeting the sheet instead of a
regular window, no? Or perhaps it has to do with the way a modal
window is initiated (i.e. NSApp beginSheet... code) though I can't see
how or why?
Even so, the logged target and sender appear to be the same in both
instances.
I read all the followups in this thread and none seemed to solve the
problem.
Any ideas?
Thanks,
Will
On Jul 4, 2004, at 1:28 AM, Bjvrn Carlstrvm wrote:
What's wrong with this code? I think its fairly straight forward but
the second method is never called from the colorPanel.
The code is called when a sheet with settings is displayed. Could the
use of a sheet interfere with how messages are sent?
- (IBAction) colorWellClick:(id) sender
{
NSColorPanel* panel;
panel = [NSColorPanel sharedColorPanel];
[panel setTarget: self];
[panel setAction: @selector (setIntExtTimeColor:)];
[panel setContinuous:YES];
NSColor* color;
// Code that sets the color
[panel setColor: color];
[panel makeKeyAndOrderFront: self];
}
- (void) setIntExtTimeColor:(id) sender
{
// I never reach this point!
}
Bjvrn Carlstrvm
_______________________________________________
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.
_______________________________________________
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.