Overriding retain/release
Overriding retain/release
- Subject: Overriding retain/release
- From: Oscar Morales Vivó <email@hidden>
- Date: Fri, 6 Jun 2003 10:32:04 +0200
Greetings to all.
I have a big load of C++ classes that already implement reference
counting, and was thinking about generically bridging them to Obj-C so
I could use them as items in an NSOutlineView (by handling the C++
objects from Obj-C helper objects that implement the appropiate
functions to give the NSOutlineView the data it wants).
I though about just overriding retain and release for my bridge object
base class, but I don't know if there's any pitfalls I might fall into,
any other functions I should override if I want to go that way, or any
apocalyptic consequences of such an action.
Any help will be mightily appreciated.
/*
Oscar Morales Vivs
Eternal Computer Science Student. Master of C++ Templates. Cocoa Nut.
Computer Graphics Illuminati. UI Guru in Training. Dabbler in all
things CS and most which are not.
Web stuff:
http://homepage.mac.com/oscarmv/index.html
*/
_______________________________________________
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.