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

PreferencePane and NSDistributedNotification


  • Subject: PreferencePane and NSDistributedNotification
  • From: Jay Teo <email@hidden>
  • Date: Wed, 4 Feb 2004 17:30:42 -0800

Hi,

I'm writing a 2-part app. One part is a PreferencePane that resides in System Preferences and the other is faceless (NSUIElement).

Among other things, I need to launch the faceless part from the PreferencePane, and once the faceless part is launched, the UI on the PreferencePane needs to be updated. To accomplish the later, I registered for notifications from NSWorkspace (NSWorkspaceDidLaunchApplicationNotification and NSWorkspaceDidTerminateApplicationNotification) and that worked fine until I made the faceless part NSUIElement. NSWorkspace apparently don't send out launch and terminate notifications for NSUIElement apps.

After some head-scratching, I came up with the idea of manually posting distributed notifications from the faceless part. So I register for distributed notifications from the preference pane. But the notifications just went unnoticed.

What's up with that? Can't preference pane plug-ins receive distributed notifications? Any suggestions for other ways to communicate from the faceless part back to the preference pane (distributed notifications work just fine the other direction)?

Thanks.

-Jay Teo
_______________________________________________
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: PreferencePane and NSDistributedNotification
      • From: Mark Munz <email@hidden>
    • Re: PreferencePane and NSDistributedNotification
      • From: James Chen <email@hidden>
  • Prev by Date: Re: Unwanted retain
  • Next by Date: NSTableView autosave doesn't work?
  • Previous by thread: Re: Quartz/Cocoa Drawing question
  • Next by thread: Re: PreferencePane and NSDistributedNotification
  • Index(es):
    • Date
    • Thread