[Pythonmac-SIG] IDLE etc build from CVS

Bob Ippolito bob@redivi.com
Tue, 18 Feb 2003 16:03:31 -0500


--Apple-Mail-6-723018133
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed


On Tuesday, Feb 18, 2003, at 15:35 America/New_York, Tony Lownds wrote:

> > Is -psn argument handling the responsibility of the main program?
> No, there are cases where the -psn argument is needed by the main
> program (possibly only apps made with PyObjC).

Does PyObjC *actually* need that?  I've never seen a Cocoa application 
break if I execute it from the terminal (without using the "open" 
command) using just its full path with no argv.

Worst case, you could generate the PSN from GetCurrentProcess or 
GetProcessInfo (with a {0, kCurrentProcess}).. if it's necessary 
anywhere, that functionality should be added to the Carbon modules.

-bob
--Apple-Mail-6-723018133
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII



On Tuesday, Feb 18, 2003, at 15:35 America/New_York, Tony Lownds wrote:


<excerpt>> Is -psn argument handling the responsibility of the main
program?

No, there are cases where the -psn argument is needed by the main

program (possibly only apps made with PyObjC).

</excerpt>

Does PyObjC *actually* need that?  I've never seen a Cocoa application
break if I execute it from the terminal (without using the "open"
command) using just its full path with no argv.


Worst case, you could generate the PSN from GetCurrentProcess or
GetProcessInfo (with a {0, kCurrentProcess}).. if it's necessary
anywhere, that functionality should be added to the Carbon modules.


-bob
--Apple-Mail-6-723018133--