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

WindowControllers and threads


  • Subject: WindowControllers and threads
  • From: email@hidden
  • Date: Thu, 27 Mar 2003 11:35:58 -0800 (PST)

Just a little curious as to whether each window has it's own runloop or whether
they share the same runloop as the application (unless they are spawned by a
thread - in which case they use the thread's)?

The reason I am asking is that I have an application that contains 2 windows.

The main window (parent) contains a NSTable and a methood called "insertEntry:"
which adds an enty to the table's datasource.

The child window (child) is simply a dialog that allows for users to enter data
and press a "save" button.

The idea is once the child data is populated and the user presses "save", this
new data should be added to the NSTable's datasource (thus automatically
updating the table view).

The "connection" I have made between the parent and the child is as follows:

The child receives a reference to the parent and calls [parent insertEntry] when
the user presses the "save" button.

If each window has it's own associated thread, then this method is not
correct... but then could anyone suggest a way in which it could be done.

thanks

Zameer *a GUI newbie*

__________________________________________________________
Get your FREE personalized e-mail at http://www.canada.com
_______________________________________________
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.

  • Prev by Date: Re: Executing short AppleScript command sets
  • Next by Date: dataWithContentsOfURL
  • Previous by thread: Re: Size of a bundle (or directory) [A: du -k -s]
  • Next by thread: dataWithContentsOfURL
  • Index(es):
    • Date
    • Thread