• 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
Re: NSTextField subclass - not using NSTextFieldCell subclass when unarchived from nib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField subclass - not using NSTextFieldCell subclass when unarchived from nib?


  • Subject: Re: NSTextField subclass - not using NSTextFieldCell subclass when unarchived from nib?
  • From: Jim Correia <email@hidden>
  • Date: Sat, 29 Jul 2006 10:22:34 -0400

On Jul 29, 2006, at 10:11 AM, Julio Cesar Silva dos Santos wrote:

Try the following test:

if ([self isKindOfClass:[MyTextField class]]) {
    ...
}

I can remove the test altogether (and end up with a +initialize that doesn't follow the best practices in the documentation) and it still doesn't work :-)


It appears this issue has come up before:

http://www.cocoabuilder.com/archive/message/cocoa/2005/8/2/143422

At that time it appears the only solution was to programatically create the controls. Is that still the status quo, or is there a way to make this work from the .nib? (as I mentioned in my original post, this *does* work for NSTokenField/NSTokenFieldCell subclasses.)

Jim

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTextField subclass - not using NSTextFieldCell subclass when unarchived from nib? (From: Jim Correia <email@hidden>)
 >Re: NSTextField subclass - not using NSTextFieldCell subclass when unarchived from nib? (From: Julio Cesar Silva dos Santos <email@hidden>)

  • Prev by Date: Re: Core Data and auto increment
  • Next by Date: Re: NSTabViewItem objects not responding appropriately to mouse clicks in custom NSTabView
  • Previous by thread: Re: NSTextField subclass - not using NSTextFieldCell subclass when unarchived from nib?
  • Next by thread: Re: NSSearchField - detect loss of focus
  • Index(es):
    • Date
    • Thread