NSDateFormatter subclass not created when nib loads
NSDateFormatter subclass not created when nib loads
- Subject: NSDateFormatter subclass not created when nib loads
- From: Jonathan Fewtrell <email@hidden>
- Date: Sat, 4 Mar 2006 11:39:53 +0000
I can see that someone has had the same problem as me with this,
specifically here:
http://www.cocoabuilder.com/archive/message/cocoa/2005/5/14/135885
and here:
http://www.cocoabuilder.com/archive/message/cocoa/2005/5/15/135932
but I can't seem to find an answer.
I have a subclass of NSDateFormatter attached to a table column in a
nib. Previously it worked fine. Now it doesn't. "Now" probably (but
not definitely) means "since I upgraded from 10.3.9 / XCode 1.5 to
10.4 / XCode 2.2". Logging suggests that -
initWithDateFormat:allowNaturalLanguage: is not called when the nib
loads. Obviously NSDateFormatter changed substantially in 10.4, but
my understanding is that the defaults assume the pre 10.4 mode and
so initWithDateFormat:allowNaturalLanguage: should work as before.
Thinking that the designated initializer may have changed to -init, I
added an -init override to my subclass, but that doesn't seem to get
called either. What have I missed?
_______________________________________________
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