• 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: what is wrong with this code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what is wrong with this code?


  • Subject: Re: what is wrong with this code?
  • From: Andreas Mayer <email@hidden>
  • Date: Sat, 30 Aug 2003 17:40:52 +0200

Am Samstag, 30.08.03 um 17:30 Uhr schrieb Nebagakid:

[newLogItem setLogItemName: [[NSCalendarDate = [NSCalendarDate
calendarDate]];
[newLogItem setLogItemData: [NSData = [NSData representationToSend]];

You really should count your brackets.

And what is NSCalendarDate = [NSCalendarDate calendarDate] supposed to mean? NSCalendarDate is a class specifier. You can't assign anything to it. Same thing with the NSData in the line below.

or the NSCalendar date part, i am trying to get today's
date in there!

As a string? Try

[[NSCalendarDate calendarDate] description]


bye. Andreas.
_______________________________________________
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: 
 >what is wrong with this code? (From: Nebagakid <email@hidden>)

  • Prev by Date: what is wrong with this code?
  • Next by Date: Carbon, resource fork
  • Previous by thread: what is wrong with this code?
  • Next by thread: Carbon, resource fork
  • Index(es):
    • Date
    • Thread