Mac Woes Continue [message #46106] |
Wed, 02 November 2005 00:03  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I continue to see strange things on Mac computers in my IDL classes.
Here is an example.
I have a program XSTRETCH:
http://www.dfanning.com/programs/xstretch.pro
It is a fairly old widget program. I have never had any problems
with it. The last time I made a modification to it was three
years ago. But it simply won't run on a Macintosh computer. :-(
I traced the problem to this line in the code:
XManager, 'xstretch', histo_tlb, Group=group, $
No_Block=1-Keyword_Set(block), $
Event_Handler='XStretch_Histogram_Resize', $
Cleanup='XStretch_Cleanup'
Here, the variable "block" is undefined, so the NO_BLOCK
keyword should evaluate to 1. To make this program work
on a Macintosh, I have to set the NO_BLOCK keyword explicitly
to 1:
XManager, 'xstretch', histo_tlb, Group=group, $
No_Block=1, $
Event_Handler='XStretch_Histogram_Resize', $
Cleanup='XStretch_Cleanup'
Does anyone have *any* idea what this could be!?
Cheers,
David
P.S. My other Macintosh problem seems to be that it is
reporting incorrect window sizes in geometry situations.
This causes me to calculate negative window sizes in widget
resize events. I haven't yet chased this to the source.
(Hard to debug code in the middle of a class.) But if you
Macophiles want to lend me a hand, the problem code is
MPI_PLOT:
http://www.dfanning.com/programs/mpi_plot.zip
I will say this about the Macs. The keyboard is very,
very cool! I just wish the darn things would run perfectly
good IDL code! :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|
Re: Mac Woes Continue [message #46288 is a reply to message #46106] |
Wed, 09 November 2005 08:12  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
James Kuyper writes:
>> Macs. Sigh....
>>
>> You know what would really help? If everyone could just
>> decide on one operating system and use that. :-)
>
> When has "everyone" ever agreed on anything? I just wish more people
> would agree with the right choice (mine :-} ).
What I really meant was, I wish *Mac users* could
decide on one OS--Tiger or Panther or Mountain Lion--
whatever it is. Some of those older ones are just buggy
as all get out!
Cheers,
David
P.S. Yes, to all of you who deluged me with private e-mail,
I *know* UNIX is the only real operating system. I just wish
it had more than its current 5% penetration in the market. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|