Re: Problems Subclassing NSDateFormatter in IB
Re: Problems Subclassing NSDateFormatter in IB
- Subject: Re: Problems Subclassing NSDateFormatter in IB
- From: Brian Smith <email@hidden>
- Date: Thu, 7 Oct 2004 08:49:44 -0600
Unless you make an IBPalette for your subclass of NSDateFormatter, I
don't think you can use IB to set it in the the NSTextField. You will
need to set the formatter with with NSTextField's -setFormatter: method
from the -awakeFromNib method of the nib's owner or a subclass of the
window/window controller/view that contains the NSTextField.
Brian
On 7 Oct, 2004, at 8:03 AM, Michael Hanna wrote:
I have an NSTextField which I attached an NSDateFormatter to in IB.
However, I want to use a subclass of NSDateFormatter that I have.
I "Read Files.." in just fine, however, when I click on the
NSTextField, the Info->Formatter still states "NSDateFormatter" and
when I go to Info->Custom Class, the new subclass doesn't appear(yet
it DOES appear in the class hierarchy in the MainMenu.nib window).
How do I apply the new NSDateFormatter subclass? I figure I must have
to remove the NSDateFormatter first, but how do I apply the new
subclass to the NSTextField in IB?
Michael
_______________________________________________
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
_______________________________________________
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