On Tue, May 20, 2008 at 2:35 AM, [EMAIL PROTECTED] (!sic)
wrote:
I am not sure I understand the OP's question, but the shortest answer
seems to be to override the super class's designated initializer.
I think he wants an Objective-C equivalent to a C++ copy constructor. That
is...
On Tue, May 20, 2008 at 10:57 AM, stephen joseph butler
[EMAIL PROTECTED] wrote:
On Tue, May 20, 2008 at 1:50 AM, Liviu Andron
[EMAIL PROTECTED] wrote:
setRepresentedObject: is a hint, thanks, but it doesn't resolve the
problem
either: he MUST copy every property from the original
On Tue, May 20, 2008 at 11:38 AM, Nathan Kinsinger [EMAIL PROTECTED]
wrote:
On May 20, 2008, at 1:57 AM, stephen joseph butler wrote:
My high-level goal:
he wants an Objective-C equivalent to a C++ copy constructor
You need to go a little higher. WHY do you need a C++ copy
constructor?
Problem:
I want to extend NSButtonCell (to keep some additional data) =
MyButtonCell, but this MyButtonCell objects must be initialized with
some base classes object
@interface MyButtonCell: NSButtonCell {
@private
MyData* fData;
}
+(id)issueWithCell:(NSButtonCell*)cell;
@end
- the situation can still appear in extreme cases
A final very low solution:
- get the bindings to a dictonary, unbind and setAction/setTarget
(that's it ... eliminate the bindings for good)
Thanks in advance,
Liviu Andron
___
Cocoa-dev