On 8/30/07 6:59 PM, "Eric Schlegel" <email@hidden> wrote:
>
> On Aug 30, 2007, at 5:59 AM, Mike Kluev wrote:
>
>> What's the best way to distinguish between ControlRef vs NSView* at
>> runtime?
>> IsValidControlHandle/HIViewIsValid?
>
> IsValidControlHandle should do the trick. Why?
What's passed to my routine is "void *" known to be either of
these so I need to distinguish between the two in order to work
correctly with it. Just an example:
void SetText(void *hiViewOrNSView, Text text);
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden