• 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: Post notification among several nib files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Post notification among several nib files?


  • Subject: Re: Post notification among several nib files?
  • From: Torsten Curdt <email@hidden>
  • Date: Sat, 8 Mar 2008 17:35:22 +0100

Have a look into NSNotificationCenter. That should do the trick.

cheers
--
Torsten


On 09.03.2008, at 01:09, Scott.D.R wrote:

Greetings, everyone.
I create a NSWindowController to manage my application preferences. I want the application to respond to the option change when occurred.
The problem is: my AppController which handle the change is placed in the MainMenu.Nib, my WindowController load another Nib file named "Preferences.Nib". Because it seems impossible to post a notification from an object in a Nib file to another object in another Nib file.
I am wondering how to accomplish these:
when users adjust the controls in the preference window (it is managed by a window controller in NIB file #B), the AppController in NIB file #A can respond to it immediately.


Thank you very much for any help.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Post notification among several nib files? (From: "Scott.D.R" <email@hidden>)

  • Prev by Date: Re: IB3 Application vs File Owner
  • Next by Date: Re: GNUStep, OpenStep, NextStep, Cocoa port?
  • Previous by thread: Post notification among several nib files?
  • Next by thread: Re: Post notification among several nib files?
  • Index(es):
    • Date
    • Thread