Re: NSOutlineViews and C++ objects
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