• 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: Problems Subclassing NSDateFormatter in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Problems Subclassing NSDateFormatter in IB (From: Michael Hanna <email@hidden>)

  • Prev by Date: Re: Calling an Obj-C method from a C++ class, how?
  • Next by Date: Putting things in subfolders in Resources folder
  • Previous by thread: Problems Subclassing NSDateFormatter in IB
  • Next by thread: Re: Problems Subclassing NSDateFormatter in IB
  • Index(es):
    • Date
    • Thread