I create a easy App for mac in Objective-C and I want to see all object and variable. Include destroyed and persistent object.
I know instruments, but I can not find how to see this information.
thank for help.
Related
How can I get information about an UWP application on Windows 10 from another application?
As a minimum, I am interested in application name and default tile. Then, I would like to be able to learn as much as possible, of course.
Some UWP apps can be linked to an EXE. That is, their main window is created by an EXE. This helps. At least, I know the location of "resource.pri", which presumably can be read.
But, there are apps which do not have EXE, and "hosted" by wwahost.exe instead. These are black boxes to me. Is there any way to know what is inside?
I would appreciate any hints.
Thanks
It's possible, but very different than what we do for desktop apps. I can share you the possible solution but there are some security issues, so I suggest you contact Microsoft to get a better way(maybe open some APIs for this kind of information) ensure your users have a safe system.
Here is what we need to do to get these information.
Enum WWAHost process.
You can enum "File type" items loaded into WWAHost, and find the one which is in this format: "C:\Program Files\WindowsApps\xxxx". When you view the app in Task Manager and view its properties, you will find it is a folder property windows. And you can also use Process Explorer to check the WWAHost process, and you will find the folder format I mentioned.
(Security Issue) To get the package name, version and more information, you have to access the folder I mentioned above. By reading the AppxManifest and dumping the resource.pri by using "makepri dump" and reading the generated resource.pri.xml, you will be able to get many information. But, we have to use special way to get access to the windowsapps folder and it will raise security risk to your users' OS(and maybe other issues). But if it is for your personal use, it's OK.
I'm developing a Firefox add-on. Part of the extension requires evaluating code in the context of a particular content window.
I found tab_utils.getTabContentWindow, which returns the ContentWindow of the given tab. The properties of this object are the properties of the webpage's window object.
From my testing it seems like accessing properties, calling ContentWindow functions, etc. all happens in the context of the webpage rather than the add-on. However, I'm not well-versed enough to know if this is sufficient for security, and the Mozilla docs don't make this clear.
Is it safe to access ContentWindow properties, use functions defined on ContentWindow, and access their results?
Good q, answer is no. As with e10s coming out next version it will be a separate process. So it will use a shim. And that shim will be going away 6 months after e10s (process tabs) release.
So you're going to want to use the sdk contentScript. Looks like you're using sdk.
I'm porting a Windows Phone 8.0 app to a universal store app. I used the state dictionary frequently to pass state info between pages. I know the new navigation service has support for a parameter, but I was looking for something that can store state outside the scope of the page. Does anyone know the "universal app way" of keeping state information in the scope of the app?
The replacement is the SuspensionManager.
You can use SuspensionManager.SessionState instead of PhoneApplicationService.Current.State
check this blog.
you can pass object directly to Navigate function.
I would like to check in VBA, in which roles is user logged in windows.
Can anyone help?
I believe there is no built-in way of doing this in VBA.
Probably the easiest way of doing this would be expose a COM Automation interface from a DLL that retrieves this information and exposes it to your vba program. Another alternate is Win32 API call but I'm not sure which function. Do some digging on Win32 API and I'm sure you'll get a suitable function (P/Invoke repository may be of much help)
WindowsIdentity is the class I think that will give you a good starting point.
WindowsIdentity lives in System.Security.Principal in .net framework that you can use to expose the information via COM interface (I'm going out on a limb here and assuming you can program in .net -- if not, you will have to find a dll that already exposes this information)
If you are experienced with programming in .net and just need help on how to implement this information, drop a shout back here and I'll share some of my code that I use for same purpose.
I'm a .NET Developer trying my hand at an application on OS X. MonoMac makes so many things easy for me. I've managed to write an application useful to myself using just the MonoMac posts people have done and the Apple Developer documentation.
I can't seem to find out how to actually associate a file extension to my application. I believe this needs to be done via Launch Services or maybe add something to the Info.plist in my project.
Any hints, code or how tos?
Read this guidelines on Runtime Configuration from Apple: http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/000-Introduction/introduction.html as pointed by this answer: How to associate a specified type of file with my program?