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: HIViews vs NSViews



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

References: 
 >Re: HIViews vs NSViews (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.