• 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
Notification to NSApp Strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Notification to NSApp Strangeness


  • Subject: Notification to NSApp Strangeness
  • From: Bruce Truax <email@hidden>
  • Date: Sat, 18 Sep 2004 17:02:03 -0400

I am getting some weird behavior when I try to send notifications to NSApp.
My document based class has a panel which opens to enter some parameters.  I
use KVO to watch for changes in the parameters in the panel.  When a change
occurs I create an NSString call theCommand and then send it to the main
document controller using:

        [NSApp sendAction:@selector(processCommand:) to:nil
                             from:theCommand];

This works fine.  My panel has a sub panel with more editable information.
When I open the sub panel and make a change I get the notification from the
KVO subsytem and I create my command string but now when I send the command
using the same exact line of code the notification never arrives at the
document controller.

I should also mention that it is the exact same observeValueForKeyPath
method used for both the panel and subpanel.

Bruce

 _______________________________________________
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

  • Follow-Ups:
    • Re: Notification to NSApp Strangeness SOLVED
      • From: Bruce Truax <email@hidden>
  • Prev by Date: Re: Converting an Absolute path to a relative path?
  • Next by Date: Re: Converting an Absolute path to a relative path?
  • Previous by thread: Re: [ANN] Project distribution tool Verpack
  • Next by thread: Re: Notification to NSApp Strangeness SOLVED
  • Index(es):
    • Date
    • Thread