• 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: dateWithCalendarFormat: problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dateWithCalendarFormat: problem


  • Subject: Re: dateWithCalendarFormat: problem
  • From: Daniel Hedrick <email@hidden>
  • Date: Sat, 25 Jan 2003 01:02:38 -0600

Using the example straight from the NSCalendarDate documentation:

NSCalendarDate *now = [NSCalendarDate calendarDate];
NSString *datestr =
[now descriptionWithCalendarFormat:@"%a %m/%d/%y %I:%M %p"];
[dateField setStringValue:datestr];

I had no problems at all. So, perhaps you could elaborate a little bit on what you do between:

NSCalendarDate *date = [NSCalendarDate calendarDate];

and:

NSString *myString = [date descriptionWithCalendarFormat:...];

WHat is the string you are passing to the message?

-daniel

On Friday, January 24, 2003, at 08:14 PM, Jeff LaMarche wrote:

Any idea why I would get a "selector not recognized" error when calling dateWithCalendarFormat: on an NSCalendarDate?

Here's the error message:

*** -[NSCFDate descriptionWithCalendarFormat:]: selector not recognized

The NSCalendarDate was created earlier like this:

NSCalendarDate *date = [NSCalendarDate calendarDate];

and has not been edited or touched by any code... _______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >dateWithCalendarFormat: problem (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: hypercard-style framework/library
  • Next by Date: Re: Resolving alias
  • Previous by thread: Re: dateWithCalendarFormat: problem
  • Next by thread: Re: dateWithCalendarFormat: problem
  • Index(es):
    • Date
    • Thread