NSControllers, NSLocks, NSThread, Setters and Getters
NSControllers, NSLocks, NSThread, Setters and Getters
- Subject: NSControllers, NSLocks, NSThread, Setters and Getters
- From: Todd Heberlein <email@hidden>
- Date: Thu, 22 May 2008 20:56:37 -0700
Hopefully this isn't already well discussed... Or if it is, someone
can point me to the appropriate discussion or docs.
I want to have a controller observe an object's variables accessed
through accessor methods, but I also want to set the value for those
variables via a separate NSThread. Furthermore, I want to protect
those variables via locks.
Can I use NSLocks inside the accessor methods that are being used by
NSControllers, or will this just really screw things up (other than
the many usual ways you can screw things up with multiple threads and
locks)?
Thanks,
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