Articles Tagged 'Window'

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;
}

Continued ...

Create MovieClip modal TopMost

di Flash. Illustrate a technique to create symbols (MovieClip) modal components to be used similarly to the Alert and Window of Flash. The aim is to show a MovieClip above all others, disabling - well - access to the underlying and any other object / component present. To be honest I have achieved that by doing a little 'reverse engineering code from Adobe, which is in the clear! I actually resisted ;)

The artefizio that is used to disable any interface present below our MovieClip, is to create a transparent MovieClip take the whole area of ​​the stage. a false . At this MovieClip, which will be virtually no visible snaps a method "void" on the event onRelease , being careful to set the useHandCursor to false .

First of all we create a movie with any interface in the main stage:

Interface

Continued ...

Flash 8: PopUpManager type mismatch

image A bug in Macromedia Flash 8, which can lead to despair, a developer, lies in the management of the Window component, when used with the class mx.managers.PopUpManager! In addition to the examples provided by Macromedia on this issue at the time, and still online, are not clear, often even blatantly wrong. What happens, in essence, is a failure that occurs suddenly in spite of our code funzionanva up to five seconds.

Continued ...