• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
overriding the initialiser of a NSTextfield subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: overriding the initialiser of a NSTextfield subclass
      • From: Michael Gersten <email@hidden>
  • Prev by Date: Re: How does Pixie work?
  • Next by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Previous by thread: Re: What is a marked text in NSTextView
  • Next by thread: Re: overriding the initialiser of a NSTextfield subclass
  • Index(es):
    • Date
    • Thread