• 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: NSOutlineViews and C++ objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineViews and C++ objects


  • Subject: Re: NSOutlineViews and C++ objects
  • From: Glen Simmons <email@hidden>
  • Date: Fri, 13 May 2005 18:17:32 -0500

On May 13, 2005, at 6:04 PM, kelvSYC wrote:

I want to write a class that implement NSOutlineViewDataSource, but the problem is that all my data for the outline view is stored as C+ + classes. What is the best way to do this?

You can mix Obj-C and C++ in the same file, just give the file a .mm extension and Xcode will compile it as an Objective-C++ file. Then just implement the NSOutlineViewDataSource as wrappers around the C++ classes. i.e. you have a Cocoa object that is the datasource of the OutlineView and which has whatever C++ objects are needed as instance variables.


HTH,
Glen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSOutlineViews and C++ objects
      • From: kelvSYC <email@hidden>
References: 
 >NSOutlineViews and C++ objects (From: kelvSYC <email@hidden>)

  • Prev by Date: NSOutlineViews and C++ objects
  • Next by Date: Re: NSOutlineViews and C++ objects
  • Previous by thread: NSOutlineViews and C++ objects
  • Next by thread: Re: NSOutlineViews and C++ objects
  • Index(es):
    • Date
    • Thread