If you are to develop in an environment where it is impossible to use the debugging tools like FireBug , such as the Apple iPhone simulator in Xcode, it can become frustrating to find problems, including an incorrect access to all properties of an object. Here is that the use of works alert() is fundamental!
Category 'D'
Very short trick: log JavaScript objects
WordPress shortcode Table
Let me demonstrate how to use the shortcode - indented (nested) - WordPress to create tables to insert into posts and pages. For example, I will show you how to create comparative charts, those used to compare the particularities of applications or products, such as:

Xcode4: backward compatible code
Xcode 4 allows you to develop applications for iPhone or iPad with a target lower than today's iPhone OS 4.3. However the same code that comes with templates "sin" of arrogance, assuming that our application will target iPhone OS 4 or higher. Delegated in the application, for example, Xcode inserts the following lines of code:
1 2 3 4 5 6 7 | BOOL ) application : ( UIApplication * ) application didFinishLaunchingWithOptions : ( NSDictionary * ) launchOptions - (BOOL) application: (UIApplication *) application didFinishLaunchingWithOptions: ( NSDictionary *) launchOptions { / / Override point for customization after application launch. self.window.rootViewController = self.viewController; ; [Self.window makeKeyAndVisible]; ; return YES; } |
WordPress Snippet: Remove the admin bar
The latest version of WordPress has added a new toolbar frontend side when the administrator is logged. If you want to disable this code included in the file functions.php of your theme:
1 2 3 4 | / / Check to see if the filter show_admin_bar has_filter ( 'show_admin_bar' ) ) { if (has_filter ('show_admin_bar')) { , '__return_false' ) ; add_filter ('show_admin_bar', '__return_false'); } |
HTML Output in PHP
The methods (or functions) that return an immediate visual and HTML output can be packaged in two main ways:
Objective-C: Notifications and Delegates
In Objective-C we have two very used to receive and send messages between classes: notifications and delegates. The difference between the two, besides being at the implementation level, substantially depends on "how" - objects - can receive a message. First let me show how the concept was born of delegate.
Very short snippet: NSConnection POST with parameters
che in modalità POST . The object NSMutableURLRequest can be used in either GET mode in POST . . The parameters, however, must be formatted as if they were in GET , ie in the sequence nome_campo1=valore1&nome_campo2=valore2&... . Here's a useful snippet to simplify the construction of fields:
Objective-C: public, protected, and private
I wrote a similar article recently for ActionScript: ActionScript 3.0: public, protected, private and internal . Rereading it I realized two things: the first was the extreme resemblance to Objective-C, although the latter does not include internal .
iPhone FontsBook: source code to display the system font
Rounding out the article How To: Custom fonts on iPhone OS 3. 2 I propose the FontsBook sources , a simple iPhone application that shows a table all system fonts, grouped by family.



Very short trick: how to use NSFileManager
, in quanto quest'ultimo restituisce un'instanza singleton, cioè sempre lo stesso puntatore ad oggetto (non thread safe). Apple recommends using the object instance NSFileManager and not its class meotodo defaultManager , as the latter returns an instance singleton, ie the same pointer to the object (not thread safe).






Latest Comments
datrix : Thank you very much!
Robert : I rispsoto your questions with pleasure. The idea is really great. I am looking for a solution ...
Sting : @ Darius - you can see an example here: http://www.fight4fun.it/ clicking on: MAPS I hope ...
vik : Giustappunto I'm working on a project and the client asked me to show all the news (which are CPT) in ...
Giovambattista Fazioli : @ paso: absolutely. Simply identifying the field [cci] input [/ cci] you want to ...