• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa & C++ Protected Member Functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa & C++ Protected Member Functions


  • Subject: Re: Cocoa & C++ Protected Member Functions
  • From: Ingvar Nedrebo <email@hidden>
  • Date: Fri, 11 Oct 2002 10:46:13 +0100

On Friday, Oct 11, 2002, at 04:59 Europe/London, Jason Harris wrote:

Hi, List!

I'm trying to use Cocoa to do some quick visualization of platform-generic ISO C++ code I'm working on. To do this (cleanly), I need access to the C++ class' protected member functions.

Anyone got any clue how to declare an objective-c++ class as a friend class of a c++ class? Possible, or am I foolishly deluding myself?


One idea might be to write a C++ helper class, make this a friend of your original C++ class, and have public methods in the helper to call those protected methods. You would then call the public methods in the helper from your ObjC class.

I.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Cocoa & C++ Protected Member Functions
      • From: Jason Harris <email@hidden>
References: 
 >Cocoa & C++ Protected Member Functions (From: Jason Harris <email@hidden>)

  • Prev by Date: NSMatrix with radio buttons - problem detecting states
  • Next by Date: How to not open a new document at app start up (init NSDocument or NSWindowController ?)
  • Previous by thread: Cocoa & C++ Protected Member Functions
  • Next by thread: Re: Cocoa & C++ Protected Member Functions
  • Index(es):
    • Date
    • Thread