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

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


  • Follow-Ups:
    • Re: NSControllers, NSLocks, NSThread, Setters and Getters
      • From: Ken Thomases <email@hidden>
References: 
 >SOLVED: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode] (From: Lynn Barton <email@hidden>)

  • Prev by Date: Re: DirWatch
  • Next by Date: Re: Understanding error and warning messages
  • Previous by thread: SOLVED: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]
  • Next by thread: Re: NSControllers, NSLocks, NSThread, Setters and Getters
  • Index(es):
    • Date
    • Thread