• 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 NSTextField problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Overriding NSTextField problem
      • From: "John C. Randolph" <email@hidden>
    • Re: Overriding NSTextField problem
      • From: John Hörnkvist <email@hidden>
  • Prev by Date: Custom Palette
  • Next by Date: Re: DVD Playback in a tiny window in my Cocoa app
  • Previous by thread: Custom Palette
  • Next by thread: Re: Overriding NSTextField problem
  • Index(es):
    • Date
    • Thread