On 8/30/07 9:07 PM, "John Stiles" <email@hidden> wrote:
> Can you do it with an overloaded function?
>
> void SetText(ControlRef hiView, Text text);
> void SetText(NSView *nsView, Text text);
>
> Then you will figure it out at compile time.
> ObjC++ FTW
I don't want to include Carbon.h or Cocoa.h into the header - it
is cross platform. Besides including Cocoa.h would require obj-c
compiler (and function overloading alone requires c++ compiler)
and caller is not guaranteed to use either.
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