Flashbuilder 4.6 PopupManager.removePopUp - actionscript

The PopupManager.removePopUp leaves the blurlayer on screen when using the modal option. I have anything tried but i can't find the solution to solve this problem.

I was having the same problem.
For me, what worked was to call the PopUpManager.removePopUp() method after finishing calling all the commands in the close handler callback function.
Previously, I called the PopUpManager.removePopUp(this) method within the custom window that I had previously added to the PopUpManager, but in the following line, I was calling another method (that wasn't even in the same customWindow class, but in another one). So I removed the PopUpManager.removePopUp(this) line from the customWindow, and put it at the very end of the last method in the other class.
This eliminated the problem

Related

IJVM is IRETURN equal to HALT ? Because both stopps the interpreter?

I think IRETURN and HALT are the same commend in IJVM. Because I tried both and both stopped the interpreter.
They are not the same (what would be the point of having two instructions doing the same thing?).
See the description in https://en.wikipedia.org/wiki/IJVM:
HALT is described as "Halt the simulator"
IRETURN is described as "Return from method with integer value"
If your code is running the top level method they may appear to have the same effect.
If you your top level method calls other methods you will see the distinction if the instructions are placed within the called methods:
HALT will still halt the simulator, thereby aborting any ongoing calculations
IRETURN will return from the called method to the caller

dart completion break the close parenthesis

If I manually type print(), then in the parenthesis, I type the word using completion, the correct parenthesis have gone away. like gif below
This doesn't happen if I type print() owing the completion of IDE. like this
Is this a bug?Otherwise how can I fix this?
There's an open issue about this in VS Code here:
https://github.com/microsoft/vscode/issues/134013
One of the VS Code devs explains the issue:
typing ( triggers suggest
now ) is typed
the cursor is moved back and suggest is not cancelled
we now apply the logic that runs when text after the cursor has been typed (while suggest is active) and that removes the newly added text
It's caused by the fix for https://github.com/microsoft/vscode/issues/26012, which slightly conflicts with it (when completions include the parens).

awful.util.spawn executes the command twice - Awesome WM

I have written awful.util.spawn("vncviewer") in rc.lua. But this results in two vncviewer instances (windows) in the startup. What is the reason?
Without more details, my guess is as good as yours. However the odds are that you put the line in a signal callback that gets called twice (like for each screen or something).
Can you pastebin your rc.lua in a comment so I can update my message with a more accurate answer?

When I call objective-c functions from Swift, NSLog in those functions do nothing

I have a mixed Swift and Objective-C project (one view controller is in objective C). When I try to print some debug output from that view controller (ie in the .m file using NSLog) I do not see any output.
My swift prints are just fine.
I made a new objective-c project and did some NSLogging, that works fine.
I added this code to my appdelegate (swift), just to immediately test:
NSLog("Testing 1 2 3")
print("Is this thing on?")
and I also do not see the NSLog output, but I do see output from the print statement.
What madness is this?
It seems like the property "OS_ACTIVITY_MODE": "disable" PREVENTS NSlog from showing up in the Xcode 9 log.
Uncheck this value in my scheme restored my logs.
Check this stack overflow post - iOS 10 doesn't print NSLogs
The solution teja_D proposes works, but then there's a lot of garbage in the logs.
Myself, I am just going to use printf. Either that or reach back across the obj-c / swift barrier and make a swift object call 'print' for me.
This kind of thing really makes me shake my head.

Detecting unused methods iOS

Very simple question and hopefully isn't duplicated :).
The situation is following:
Project has been developing more then a year and by many developers.
From time to time I'm facing with unused methods (which are defined in .h and .m) obviously I'm not getting any warnings.
This is not critical, but I would like to have project cleared from all unnecessary staff. Of course I can search for all methods and define which are unused in project but I wonder if there is more elegant way?!
Thanks
A quick way to check while browsing your source code is the View > Standard Editor > Show Related Items menu (shortcut key: ^1). Place your cursor within a method body and then view the Callers.
AppCode (http://www.jetbrains.com/objc) can tell you if a method or an import is unused.
It's works in real time, but you can also inspect a whole project (menu code > inspect Code)
I don't think xCode can do it.
AppCode is not free, but it has a trial version.
Might I suggest adding an NSLOG to these methods. For example, if you have a View Controller called Home, you can go into the .m file for the Home View Controller and at the top of the function, write the following:
NSLOG(#"Method 1, has 3 buttons);
then watch the readout as you progress through the actions on that View Controller. The log should say something that would best describe the method in question. Step 2 would be to take the methods that you feel aren't showing up on the output and comment them out. That can be done by highlighting the method and then hitting Command + '/' on the keyboard. This will place '//' in front of each highlighted line commenting it out. Test your view controller again and if still no errors, you can delete that method. That's a free way to do it, but it does take some time.

Resources