I found this <http://www.mactech.com/articles/mactech/Vol.12/12.05/ 
Handles2/index.html>, which says that using HSetState is preferable  
to HUnlock.

But also the docs say that data access through handles is being  
deprecated, though I haven't seen an alternative way of handling  
AliasHandle (and is AliasHandle itself actually being deprecated?)

Christiaan

On 15 May 2007, at 6:16 PM, Adam R. Maxwell wrote:

>
> On Tuesday, May 15, 2007, at 09:00AM, "Christiaan Hofman"  
> <[EMAIL PROTECTED]> wrote:
>> Probably it is OK. HLock is not an access lock, but rather tells the
>> system that the block of data shouldn't be moved. I guess the
>> previous setting is restored by HSetState that is called afterwards.
>
> That's correct, but the only way to figure that out is by reading  
> the header, which is much more useful than the API docs.  I guess  
> this would restore it to the previous state, whether locked by some  
> other caller, or unlocked.  HUnlock would just unlock it.
>
> The header also indicates that these functions are being  
> deprecated, and we could probably #define  
> __MAC_OS_X_MEMORY_MANAGER_CLEAN__ 1 in our source to make them no- 
> ops, since we don't manipulate handles directly.  Interesting.
>
> adam
>
>
>> On 15 May 2007, at 5:20 PM, Adam R. Maxwell wrote:
>>
>>>
>>> On Tuesday, May 15, 2007, at 07:51AM, "Christiaan Hofman"
>>> <[EMAIL PROTECTED]> wrote:
>>>> In the HandleToData function in BDalias, HLock is used without a
>>>> matching HUnlock. I don't know a thing about HLock, but isn't that
>>>> wrong?
>>>
>>> No idea.  Sounds like a good question for macosx-dev.
>>>
>>> -------------------------------------------------------------------- 
>>> --
>>> ---
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Bibdesk-develop mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
>>
>>
>> --------------------------------------------------------------------- 
>> ----
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Bibdesk-develop mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
>>
>>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bibdesk-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-develop


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bibdesk-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to