nslock Questions

3

Solved

I current have a set of asynchronous functions that are both called in the viewDidLoad(). At the end of each function is a bool that is set from false to true upon completion of the function. There...
Galloromance asked 19/7, 2017 at 23:27

3

Solved

I have recently, like a few people, discovered that [ALAssetsLibrary enumerateGroupsWithTypes] likes to run its blocks on another thread. What a shame that Apple didn't document that :-) In my cur...
Bey asked 27/8, 2010 at 18:0

1

Solved

I am implementing a health bar that animates via user input. These animations make it go up or down by a certain amount (say 50 units) and are the result of a button press. There are two buttons....
Hilde asked 24/8, 2013 at 20:5

1

Solved

I have a property @property NSLock *myLock And I want to write two methods: - (void) lock and - (void) unlock These methods lock and unlock myLock respectively and they need to do this rega...

2

Solved

I have a loop which starts with a [lock lock]; because in the body of the loop I am creating another thread which needs to finish before the loop runs again. (The other thread will unlock it whe...
J asked 1/2, 2011 at 21:28

3

Solved

I have my main application delegate which contains a method that returns an object. This application delegate runs on the main thread. I also have a NSOperation that gets run on a different thread...
Sky asked 27/10, 2009 at 17:48
1

© 2022 - 2024 — McMap. All rights reserved.