Skip navigation.
 
mlRe: Problems Subclassing NSDateFormatter in IB
FROM : Brian Smith
DATE : Thu Oct 07 16:49:44 2004

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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>

Related mailsAuthorDate
mlProblems Subclassing NSDateFormatter in IB Michael Hanna Oct 7, 16:03
mlRe: Problems Subclassing NSDateFormatter in IB Brian Smith Oct 7, 16:49
mlRe: Problems Subclassing NSDateFormatter in IB Louis C. Sacha Oct 11, 22:48