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 Aug 31, 2007, at 1:44 AM, Mike Kluev wrote:

On 8/30/07 9:51 PM, "John Stiles" <email@hidden> wrote:

You can forward declare these types very easily to avoid including
headers.

Yes, like this:

class NSView;
typedef struct OpaqueControlRef* ControlRef;
// update accordingly when Apple's definition changed.

void SetText(ControlRef hiView, Text text);
void SetText(NSView *nsView, Text text);

Still that will rule out ะก and ObjC callers.

Well, do you have large bodies of C/ObjC code which does not compile with the C++/ObjC++ compiler? _______________________________________________
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: Mike Kluev <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.