Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Cocoa Lumberjack Syntax Error
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ryan Liao  
View profile  
 More options Aug 29 2012, 12:04 am
From: Ryan Liao <ryliao0...@gmail.com>
Date: Tue, 28 Aug 2012 21:04:55 -0700
Local: Wed, Aug 29 2012 12:04 am
Subject: Re: Cocoa Lumberjack Syntax Error

Hi Michael,

Thank you very much for replying to and solving my problem!!!

I upgraded my xCode to 4.4.1 and it got rid of the @ syntax problem!!!.

However, when I am using the framework, it still gives me many errors.

I want to use DDFileLogger to save my logs to a file, but I am having
trouble setting it up.

Can you please provide explanations on how to use DDFileLogger?

Thanks,

Ryan

On Sat, Aug 25, 2012 at 7:47 PM, mkloster <mikeklos...@gmail.com> wrote:
> Ryan,

> I got that error when I compiled as well. My solution was to upgrade to
> the latest xCode and compiler (v4).

> The syntax is new to the latest version of Objective-C. The '@' is
> defining a NSDictionary literal in this case. The same symbol can be used
> to define NSNumber literals and NSArray literals too.

> Is upgrading your xCode and compiler and option?

> Michael

> On Saturday, August 25, 2012 9:12:04 PM UTC-5, Ryan Liao wrote:

>> Hi,

>> I am new to xCode coding, so I have a few questions.

>> I am currently using the latest xCode to develope iPhone app.

>> To import the framework, do I import the entire folder or do I only have
>> to drag certain files into the project folder?

>> And when I imported the DDFileLogger framework,I'm getting unexpected '@'
>> in program errors in DDFileLogger.m:

>> - (NSString *)description
>> {
>> return [*@*{@"filePath": self.filePath,
>> @"fileName": self.fileName,
>> @"fileAttributes": self.fileAttributes,
>> @"creationDate": self.creationDate,
>> @"modificationDate": self.modificationDate,
>> @"fileSize": @(self.fileSize),
>> @"age": @(self.age),
>> @"isArchived": @(self.isArchived)} description];
>> }

>> Please provide possible solutions to fix this.

>> Thank You Very Much!,

>> -Ryan

>  --
> You received this message because you are subscribed to the Google Groups
> "CocoaLumberjack" group.
> To post to this group, send email to cocoalumberjack@googlegroups.com.
> To unsubscribe from this group, send email to
> cocoalumberjack+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cocoalumberjack/-/xV1gROm1QvMJ.
> For more options, visit https://groups.google.com/groups/opt_out.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.