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: How to get the info from a handle?



On 11/27/03 2:28 PM, David Duncan didst favor us with:

>> How can I get the info from the handle?
>
> For future reference, a Handle is merely a double-pointer (specifically
> char** for the Handle type).

For purposes of referencing the data, this is true, but in general, not
quite. A Handle is a Mac data type and any APIs which take a Handle expect
it to have been created using an appropriate Toolbox API such as NewHandle
or GetResource. You can't, for example, just pass the address of a pointer
to an API expecting a Handle.

> Thus if you want to get the data in a
> handle, you need to dereference twice.

Larry
_______________________________________________
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: How to get the info from a handle? (From: David Duncan <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.