• 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
Re: Action isn't sent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Action isn't sent
      • From: Sherm Pendley <email@hidden>
References: 
 >Action isn't sent (From: Björn Carlström <email@hidden>)

  • Prev by Date: Re: Distributed Objects: Passing my objects to distant object
  • Next by Date: Re: Action isn't sent
  • Previous by thread: Re: Action isn't sent
  • Next by thread: Re: Action isn't sent
  • Index(es):
    • Date
    • Thread