articles tagged with: tips
-
Méthodes privées en Objective-C
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at: http://www.gnu.org/copyleft/fdl.html Introduction En Objective-C, contrairement à de nombreux autres langages orientés objet, le concept de méthode privée n’existe pas en tant que tel. Dans la déclaration de l’interface d’une classe, il est possible de définir une visibilité ...
Tags: apple, best practices, cocoa, design pattern, Développement, ipad, iPhone, mac, objective-c, tipsPosted in create
-
Closure et fonctions lambda en Objective-C
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at: http://www.gnu.org/copyleft/fdl.html Définitions De nombreux langages de scripts permettent l’utilisation de «fonctions lambdas», ou encore «fonctions anonymes», concept généralement lié au phénomène appelé «closure». Il s’agit de concepts bien connus notamment en JavaScript, ActionScript, ou encore en ...
Tags: apple, avant-garde, best practices, cocoa, communauté, Développement, iPhone, mac, méthodes, objective-c, open source, optimization, tips, tools, XCodePosted in create
-
Implémentation d’un système de délégation multiple en Objective-C
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at: http://www.gnu.org/copyleft/fdl.html 1. Qu’est-ce que la délégation? La délégation est un système présent dans plusieurs classes du framework Cocoa, sous Mac OS X (et donc également sur iPhone OS). Ce système permet aux dévelopeurs d’applications Cocoa d’interagir en fonction ...
-
__toString method is not so magic before PHP 5.2!
This article was originally created by Emilien Vuillaume (Left our team) With Object Oriented Programmation, it is often useful to display an object quickly and easily. The PHP langage has a magic object method to do that : class Object{ public function __toString() { }} This method, if it is defined, will be automatically called (magic !) when the Object is displayed. It’s nice, no ? But if your Php version is prior to 5.2, the magic method is not called ! Example : class Car{ public $color; public function __construct($color = 'white') { $this->color = $color; } public ...



