To me then it is not clear that it is a bad method.

This one (the depreciated one):

void REALLockPictureDescription(REALpicture pic, REALpictureDescription *description)

is getting the picture as it is, including a identifier telling what type it is. (No translation performed)

While the other one:

Boolean REALLockPictureDescription(REALpicture pic, REALpictureDescription *description, long picType)

is getting it in desired format and can often cause translation.

Sometimes the case is when writing optimized routines that you don't want any translation to ever happen, and you are prepared to accept it in whatever format it comes in. (Meaning your code has handler for all of them or will reject pictures in other formats)

Björn



On 10.8.2006, at 14:27, Jonathan Johnson wrote:


On Aug 10, 2006, at 6:51 AM, Alfred Van Hoek wrote:

It appears also that when you define FLAT_C_PLUGIN_HEADERS 1 that then one of the REALLockPictureDescription methods is not available anymore. Is this really intentional, or an oversight?


#if !FLAT_C_PLUGIN_HEADERS
void REALLockPictureDescription(REALpicture pic, REALpictureDescription *description)

is not available, but what if we give it a flat name like REALLockPictureDescriptionWithUnknownType?

It's not available because it's ill-defined. While it would continue to work, we encourage the newer API as it will yield much more reliable results (rather than relying on all plugin authors to code defensively about unforseen picture types).

comes with another entry point "REALLockPictureDescription", indicating that these two functions have different behavior.

They do, as they have different arguments.

I'm at WWDC this week and only now had a chance to download the SDK. It appears that this was broken by the person adding support for the different numeric types with REALGet/Set prop value. This will be fixed for the next release.

-Jon


--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to