You can probably achieve the desired effect right inside your loop, if you explicitly give the run loop some time to run:
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow: 0.1]];
More Related Contents:
- iTunes Song Title Scrolling in Cocoa
- How to limit NSTextField text length and keep it always upper case?
- Listen to a value change of my text field
- NSString property: copy or retain?
- Understanding NSString comparison
- Cannot add items to an NSMutableArray ivar
- How to print out the method name and line number and conditionally disable NSLog?
- How to do a natural sort on an NSArray?
- Sort NSArray of date strings or objects
- iOS – Build fails with CocoaPods cannot find header files
- Objective-C Introspection/Reflection
- NSString tokenize in Objective-C
- Comparing Strings in Cocoa
- Is there a way to suppress warnings in Xcode?
- How do you set your Cocoa application as the default web browser?
- Sorting two NSArrays together side by side
- Search through NSString using Regular Expression
- Parse Plist (NSString) into NSDictionary
- How do I create an MD5 Hash of a string in Cocoa?
- Are classes objects in Objective-C?
- Core Data Predicate Date Comparison
- How to escape double quotes in string?
- How can I determine if Apple methods are asynchronous?
- ObjC/Cocoa class for converting size to human-readable string?
- Getting a random object from NSArray without duplication
- How to make a smooth, rounded, volume-like OS X window with NSVisualEffectView?
- Saving a NSArray
- Cocoa/ Objective-C Shell Command Line Execution
- What’s the difference between [NSNull null] and nil?
- +[NSString stringWithString:] — what’s the point?