Tag Archives: selector

Run a method in a separate thread in Objective-C (Cocoa Framework)

In some situations, performing operations in a single thread can cause an application to appear as if it is hanging. For example, when searching with autocomplete enabled within a large amount of records in a database . The user is typing and the application is performing a computationally complex operation at the same time (searching [...]

Posted in Objective-C | Also tagged , , , , , , , , , , | 1 Comment

Hiding and showing elements with jQuery

If you don’t know what jQuery is, I’d recommend you to visit jquery.com for clarification. Suppose you have an HTML div element which you want to hide and show. <div id=’foo’>bar</div> The next step is to use a so called selector to select the element and call the hide() function to hide the element. $(‘#foo’).hide(); The [...]

Posted in JavaScript | Also tagged , , , , , | Leave a comment