VSIZE, apps without AppKit
VSIZE, apps without AppKit
- Subject: VSIZE, apps without AppKit
- From: Angela Brett <email@hidden>
- Date: Sat, 6 Apr 2002 10:01:25 +1200
Hi,
I wrote a Foundation Tool, which I have now put into an Application
solely so that it can be added as a Login Iten. I've removed all
remnants of the AppKit from the project, since I don't need it and as
soon as I use anything from the AppKit the VSIZE (as mentioned in
top) goes up to about 30 or 50MB. I don't know ir that's really a bad
thing, but it seems quite wasteful for something which is meant to be
running all the time, and which doesn't actually need anything from
the AppKit. That's my first question... if I do use the AppKit in
this program, how much difference does that really make? Will that
extra size slow down the system at all?
The reason I ask is that if I don't use the AppKit, everything works
but the system never knows that the app has finished launching. If I
don't set it to be background only (and it is meant to be background
only, this is just a way of seeing the problem) the dock icon just
keeps bouncing. Even if it is background only, I get an error if I
try to launch it with NSWorkspace if it is already running, I guess
because it's still starting up as far as NSWorkspace knows, since
launchApplication is supposed to work fine if the application is
already running. I guess I could stop that if I used AppKit with
[NSApp finishLaunching] or something - in fact it would probably do
that itself.
So what would be the best thing to do here? I guess it seems kind of
hacky and bad to have an application which doesn't use the AppKit, is
it worth it? Is it naive of me to think that including the AppKit in
the project and using all that extra vsize will actually hurt
anything?
--
Angela Brett email@hidden
http://acronyms.co.nz/angela
"Great minds think different."
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.