image
image

Go Back   macosx.com > Mac Help Forums > Switchers (Windows to Mac Converts)

Reply
 
Thread Tools
  #1  
Old March 28th, 2008, 04:55 PM
Registered User
 
Join Date: Mar 2008
Posts: 4
minimalistic is on a distinguished road
Multiple instances of an application

Dudes,

I have a generic issue here... I recently switched from xp to leopard and almost got used to all the most significant differences. However, I think I just realized it's quite impossible to spawn multiple instances of an application (let's say finder) under mac os.

Please someone tell me I'm stupid, because I don't know what to think of this os now....

Some background information - I'm trying to configure shorcuts in quicksilver so that I get a more win-ish shortcut experience (I'm really used to win's ones ). That's how I actually discovered this thing

Please someone say what's going on here

Cheers
Reply With Quote
  #2  
Old March 28th, 2008, 07:05 PM
Tech
 
Join Date: Jun 2001
Location: Dover, DE
Posts: 3,657
DeltaMac will become famous soon enough
I know that you used the Finder just as an example. The Finder is not really an app that you just launch when you need it. It runs all the time, and is a basic part of the functionality of OS X (for good and bad, I suppose).
Most apps will be one instance, but may offer multiple independent windows depending on the use. If you need another window for that app, then just open another window (as in a web browser). Open a new document in Word, or another word processor-type app, and you add a window to the display. Some apps operate with only a single window, such as iTunes.

You may get other answers if you explain (with as much detail as you like) exactly what you want to do...
__________________
Serendipity is a lucky guess !
Reply With Quote
  #3  
Old March 29th, 2008, 08:04 AM
Registered User
 
Join Date: Mar 2008
Posts: 4
minimalistic is on a distinguished road
I understand the thing with the multiple windows.... It kinda provides the same user experience as spawning multiple instances.

However, I guess those are all sharing the same process and (hence) memory. So it's much less isolated and a potential crash in one of the windows would result in losing all of them...

Otherwise, besides being a bad architectural decision/implementation, I don't find it really as a problem - as I said, the user experience isn't hurt by that (so far).

cheers
Reply With Quote
  #4  
Old March 29th, 2008, 08:25 AM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,416
Mikuro is on a distinguished road
Yes, all of an app's windows are subject to a crash. On the other hand, it also allows for vastly more efficient use of memory.

I wouldn't call it bad design, but I see where you're coming from. This is one of the fundamental differences between Windows and the Mac OS. You CAN launch multiple instances of an app in OS X, but doing so is not usually a good idea. Mac OS is application-centric, not window-centric.

Having said that, in those cases where you really do need to load a second instance, there are two approaches you can take:

1. Duplicate the application in the Finder, then launch the duplicate.
2. Launch it from Terminal. Here you need to know where to find the actual executable file of an application. Mac OS X apps are usually actually folders. So for example, if you wanted a second instance of Preview, you could do it like this:
Code:
/Applications/Preview.app/Contents/MacOS/Preview &
The "&" at the end tells Terminal to run the process in the background, so you can enter other commands in the Terminal window. You'll still need to keep the window open as long as you want to use Preview, but you won't need 1 Terminal window for every app like you would without the "&".
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
  #5  
Old March 29th, 2008, 09:56 AM
fryke's Avatar
Super Moderator
 
Join Date: Sep 2000
Location: macosx.com
Posts: 12,982
fryke has a spectacular aura aboutfryke has a spectacular aura about
Just to mention it again: It's not really a good idea to copy the Finder and start multiple instances of it. There is A) not really a reason for it and B) problems down the road, since the Finder's automatically updated with software updates, whereas the copies wouldn't be.
__________________
MacBook Air 13" 1.6 GHz, 2 GB RAM, 80 GB HD. Mac OS X 10.5.4
MacBook 13" 1.83 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.4
Hackintosh Core2Duo 2.4 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.4
iPhone 16 GB, AppleTV 1G 40 GB (v2)

Mac user since 1987, Apple Product Professional 2007, 2008.
Reply With Quote
  #6  
Old March 29th, 2008, 06:01 PM
Registered User
 
Join Date: Mar 2008
Posts: 4
minimalistic is on a distinguished road
thanks for the advice

btw - could you forward me to some online documentation/articles on the kernel architecture, process model, etc. of mac os (or free bsd, as it seems it's more or less the same).

and yes, I'm coming from a win developer background and want to grasp the core concepts of this os
Reply With Quote
  #7  
Old March 29th, 2008, 09:18 PM
lurk's Avatar
Mitä?
 
Join Date: Mar 2002
Location: Land o' skeeterz
Posts: 2,076
lurk is on a distinguished road
Your best bet is to just go to http://developer.apple.com/ and go crazy. There is documentation 'o plenty there.
__________________
Wenn ist das Nunstruck git und Slotermeyer? Ja!...
Beiherhund das Oder die Flipperwaldt gersput!
Reply With Quote
  #8  
Old March 31st, 2008, 06:23 AM
Giaguara's Avatar
Chmod 760
 
Join Date: Nov 2002
Posts: 7,321
Giaguara is on a distinguished road
There are usually very few instances when the applications in OS X make sense to run in multiple instances. The only ones I've found a business need (for anyone) to use would be debugging the applications you have written for OS X, or other debug, bug testing, or the process of localization of applications. Developer documentation contains more on how you can get multiple instances open but for a non-developer use of applications there probably isn't much need.

I would love to be able to reverse what you want to Windows.. I mean, instead of having 10 processes open for a browser that has 10 browser windows open (each window = 1 instance = wasting memory) just keep one process per application and let that process manage it memory use more effectively.
__________________
MacBook Pro + Mac mini | Newton 2000 | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
~ Samuel Clemens | Rants | Photos
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 08:33 AM.


Mac Support® Version 3.7.0 Beta 5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.