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 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

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