Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What do we want in Carbon? (was Modern C++)



circa 11/7/03 11:41 AM, Eric Schlegel <email@hidden> wrote:

>>> Yes, I saw the wink and the smile, but seriously, Apple engineers do not
>>> have this luxury. If the offending apps are sufficiently popular, Apple
>>> can't afford to break them just for the sake of correctness.
>>>
>> This would not be breaking any applications as I understand it. According to
>> Eric, they had to modify RunStandardAlert to *fix* the offending
>> applications.
>>
> I think when Pete wrote "break" he meant the same thing as what you mean by
> "fix".

To remove all doubt, the hypothetical timeline I had in mind was:

-- Apple ships RunStandardAlert.

-- The developer of application A calls GetNewDialog and
passes the resulting DialogRef to RunStandardAlert.
It works due to some undocumented implementation detail.

-- Application A sells lots of copies.

-- In a pre-release build, Apple revises RunStandardAlert
such that it accepts only DialogRef values produced
by CreateStandardAlert.

-- In testing this build, Apple finds that application A
crashes out in RunStandardAlert.

-- Apple obfuscates RunStandardAlert before shipping it
again in order to both achieve its original goal *and*
coddle application A's incorrect usage.

If Apple were to skip the last step in the list above, it would "break"
application A. I assumed that by "work around" Eric was referring to the
last step in the list above. This sort of thing happens all the time. I
don't know how may details of the scenario above apply. I don't know what's
documented and what's not for these calls. I'm just reading Eric and
interpreting what he has written in this thread. And no, I do not have any
particular developer in mind. A stands for Application. :-)

--

Pete Gontier
http://www.pete.gontier.org/
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: What do we want in Carbon? (was Modern C++) (From: Eric Schlegel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.