Overriding NSTextField problem
Overriding NSTextField problem
- Subject: Overriding NSTextField problem
- From: Cyril Godefroy <email@hidden>
- Date: Sun, 24 Feb 2002 11:03:18 +0100
Hi,
I'm overriding NSTextField to have a different behavior for drag&drop.
What I did is create a new MyTextFied:NSTextField class, then in IB I
imported that class and set my textfield's custom class to MyTextField.
I have an init message which basically does:
if (self = [super init]){
NSLog(@"MyTextField");
[self registerForDraggedTypes:[NSArray
arrayWithObject:NSStringPboardType]];
}
return self;
I don't see the Log appearing.
So, I wonder what is wrong with what I've done. Hints or answers are
welcome....
Cyril
_______________________________________________
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.