| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Aug 30, 2007, at 10:43 AM, Mike Kluev wrote:
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
| References: | |
| >Re: HIViews vs NSViews (From: Mike Kluev <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.