• 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: NSControllers, NSLocks, NSThread, Setters and Getters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSControllers, NSLocks, NSThread, Setters and Getters


  • Subject: Re: NSControllers, NSLocks, NSThread, Setters and Getters
  • From: Todd Heberlein <email@hidden>
  • Date: Fri, 23 May 2008 09:37:14 -0700


On May 22, 2008, at 9:21 PM, Ken Thomases wrote:

KVO change notifications are sent and received on the same thread where the change is made.

Thanks! Yeah, that will definitely screw up my plans. Thanks for the heads up.


Ideally, a background thread should be given all of the data it needs to do its work at the beginning and it would work in isolation until its job is done and only then provide results in a lump to the main thread.

In my case, I am constantly looking for more data to be added to a file that is being written to by another process, then read the additional data, and potentially update some data structures. I wanted to put the code to check and process the file data in a separate thread, but I think I will just try an NSTimer for now.


Thanks again! I could have seen my efforts leading to a major headache as I tried to figure out why the Controller wasn't properly updating the GUI.

Todd

_______________________________________________

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: 
 >SOLVED: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode] (From: Lynn Barton <email@hidden>)
 >NSControllers, NSLocks, NSThread, Setters and Getters (From: Todd Heberlein <email@hidden>)
 >Re: NSControllers, NSLocks, NSThread, Setters and Getters (From: Ken Thomases <email@hidden>)

  • Prev by Date: Removing the Filename flag in Doc. based Application
  • Next by Date: Re: Appkido support for Iphone dev
  • Previous by thread: Re: NSControllers, NSLocks, NSThread, Setters and Getters
  • Next by thread: OpenGL ES on Mac
  • Index(es):
    • Date
    • Thread