Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.