void SetText(ControlRef hiView, Text text);
void SetText(NSView *nsView, Text text);
Then you will figure it out at compile time.
ObjC++ FTW
On Aug 30, 2007, at 8:09 AM, Mike Kluev wrote:
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/jstiles%
40blizzard.com
This email sent to email@hidden
_______________________________________________
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