AS3 EventManager Class: removeAllListeners

AS3, Flash, Flex oscar Nessun Commento »

Per rimuovere tutti i listener Danny Miller ha creato una libreria EventManager che permette proprio questo.
Scarica l’ultima versione della libreria oppure vai sul suo blog.

Localizzare una app per iPhone

iPhone, MacOSX Soft! Nessun Commento »

Per iniziare vediamo di localizzare il nome dell’app.
Il segreto è localizzare il valore della chiave CFBundleDisplayName contenuto nel file Info.plist.
La documentazione di Apple per questa chiave è la seguente:

CFBundleDisplayName (String - iOS, Mac OS X) specifies the display name of the bundle. If you support localized names for your bundle, include this key in both your information property list file and in the InfoPlist.strings files of your language subdirectories. If you localize this key, you should also include a localized version of the CFBundleName key.

If you do not intend to localize your bundle, do not include this key in your Info.plist file. Inclusion of this key does not affect the display of the bundle name but does incur a performance penalty to search for localized versions of this key.

Before displaying a localized name for your bundle, the Finder compares the value of this key against the actual name of your bundle in the file system. If the two names match, the Finder proceeds to display the localized name from the appropriateInfoPlist.strings file of your bundle. If the names do not match, the Finder displays the file-system name.

Inizialmente quando si crea una applicazione per iOS, xCode popola automaticamente le chiavi CFBundleDisplayName (“Bundle display name”) e CFBundleName (“Bundle name”) con ${PRODUCT_NAME} che rappresenta il nome assegnato al progetto.


Leggi il resto di questo articolo »

MouseEvent.relatedObject evento utile ma poco utilizzato

AS3, Flash, Flex oscar Nessun Commento »

MouseEvent.relatedObject è un evento comodo in casi in cui è utile sapere quale oggetto aveva in possesso un evento MouseEvent. Per esempio catturiamo un mouseOver in un pannello in cui ci sono due bottoni. Quando passiamo col mouse su un bottone potremmo conoscere se siamo prima passati sull’altro bottone oppure se non ci siamo passati, arrivandoci cioè direttamente passando solo sul pannello.
Leggi il resto di questo articolo »

Home | Graffiti e Disegni | Educazione | Chi siamo | Blog | Progetti | Contatti
RSS Feed Comments RSS Accedi