It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a cocoa application,I want to get the time from the application startup to it startup succeed.And then post the time to my server.Can someone give me some tips?
Define your starting point (e.g. application:didFinishLaunchingWithOptions:) and ending point (e.g. viewDidLoad on the main view controller). Create a class (with + messages) that has start and stop calls. Once you get stop, post the time to your server (asynchronously of course).
all this measuring wont take into account the runtime loading.
classes loading & !frameworks loading
it happens before your main and even instruments won't correctly profile it
although it will show that an amount of time passes between 'Run App' and main!
this load can have a considerable influence on your time especially when frameworks have been swapped out / you do a cold start
tried at WWDC WITH apple engineer and we could reproduce times ranging from 3s(normal time for my app) to 10(when we used safari before!)
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have this project that has functions to load different chapters of a book. (Ex. loadChapter1)
My thinking was that I will call the functions to load up every chapter when the app launches. But by the time I am done with the program, there would be a huge amount of chapters. It's only loading up lots of NSStrings.
Would that make the program slow to initialize or even crash the program?
My functions are declared in AppDelegate.h using ( -(void)loadChapter1 ). The way I call it in AppDelegate.m is using [self loadChapter1].
If this is not a good way, this there any other way to do this?
You're better off trying something, seeing if it works well, then making changes (and possibly asking questions here) if it doesn't rather than asking a question like this at the outset. For performance questions in particular, the accepted wisdom is that you shouldn't worry too much about performance (memory and CPU usage) while initially writing a program, but rather should do performance optimizations as needed after you've got the program working.
That said, my first approach to this would be to load each chapter as it's requested. So, don't load all the chapters in the book every time the app launches. Rather, load a chapter when the user turns the page to that chapter or selects it in the table of contents (or whatever applies to your app). That way, you don't waste time and memory loading chapters that before they're actually going to be used.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to create an iPad application in which there are four windows on single screen.
these windows should be updating simultaneously (Multitasking). How i can do this any suggestion/help will be appreciable
I'm going to assume that you mean views and not windows.
First, make sure you're not over-complicating the interface. It should be intuitive, and four distinct simultaneous views sound like a lot (of course, it depends).
Second, create a UIViewController. Then, create four UIView subclasses, with all the properties and objects you need, lay them out as subviews, and build the logic into the UIViewController, which can be the delegate for them.
I hope this helps get you started in the right direction, but as others have said, this is a broad question and there are many applicable approaches.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm developing a game and I'm there a lot of things that change after a few minutes, so I created a New Game button where I use Application.Restart() to clean everything and get a new fresh game, but the problem is that this exits the game and starts a new one. What I want to do is to restart a game, but without the players noticing that the game exits. How do I do this?
best regards, joao.
You should implement Start(), Stop() and Restart() methods on your main game controller class. The Restart() method should reset the values of all variables, states, players, scores etc and reset the game board / environment and reset the game to it's original state. Application.Restart() will always be noticable unfortunately.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I wrote an app in Visual Studio and is about 20k+ lines, but I don't know why it takes so long to start up. I have a splash screen just to test it to see if the program is working, and it is, but I have to wait for so long for the app to actually get to the start up form. A splash screen for this app isn't ideal, but was only using a splash screen for test purposes. Any ideas? Language is VB. It has 7 forms excluding the splash screen form.
You could use NGEN and the GAC, however the subject is complex. You will find a good article from Microsoft on this subject here.
Usually your assemblies (exe's, dll's) contain IL code (Intermediate Language code). When you start the program this code is compiled just in time (it is jitted). NGEN will compile your assemblies to native code (Pentium code).
The GAC is the global assembly cache. If you put your NGENed code there, this will increase startup.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
can any one give me the functional requirements documentation for the reservation tracking system ,it is going to be implemented in asp.net and the details are as follows,
1)The main theme of this application is gathering reservations from different clients and updated in particular intervals of time to the Fitzserver then these reservations will be send to the particular driver.
2) Then driver information is retrieved through mobile application using webservice and updated in the Fitzserver.
3) The information of driver from Fitzserver is send to the client as link to email.
No, nobody can unless they are either the user/stakeholder of a similar system or the developer/architect of a similar system.
You should execute the requirements process. Talk to the endusers, write down what they expect.
Examples/guidelines on how to go forward:
http://epf.eclipse.org/wikis/openup/index.htm
See Practices > Technical Practices > Use Case Driven Development
http://en.wikiversity.org/wiki/Technical_writing_specification