overriding the initialiser of a NSTextfield subclass
overriding the initialiser of a NSTextfield subclass
- Subject: overriding the initialiser of a NSTextfield subclass
- From: Graeme Nattress <email@hidden>
- Date: Thu, 4 Jul 2002 15:14:51 -0400
*This message was transferred with a trial version of CommuniGate(tm) Pro*
I want to override the initialiser of a subclass of NSTextfield, so I
can put some initial text in there, and set it up for recieving a
drag. This is what I've tried:
#import "RibPathField.h"
@implementation RibPathField
- initWithFrame:(NSRect)frame
{
[super initWithFrame:frame];
[self registerForDraggedTypes:
[NSArray arrayWithObject:NSStringPboardType]];
[self setObjectValue:@"Drop file here"];
NSLog(@"here");
return self;
}
@end
But it doesn't even seem to execute that code. Can anyone help?
Graeme
--
--
Graeme Nattress: Vice President R&D www.noitaminanimation.com
_______________________________________________
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.