Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using Run Loops

From: timer.m

18 [[NSRunLoop currentRunLoop] run];

The design pattern that defines the structure of most nontrivial Objective-C programs is the run loop. A run loop, in the general case, waits for data from one or more event sources, and then executes code in response to them, giving an event driven programming model.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint