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
Growl.app 1.4 source won't build
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
GingerPrince  
View profile  
 More options Aug 1 2012, 4:36 pm
From: GingerPrince <matthew.h...@gmail.com>
Date: Wed, 1 Aug 2012 13:36:21 -0700 (PDT)
Local: Wed, Aug 1 2012 4:36 pm
Subject: Growl.app 1.4 source won't build

Hi

I've checked out the source code for tag 1.4 and I'm trying to build it on
Mountain Lion using xcode 4.4.

I'm getting errors in GrowlApp and MailMe that prevent it building. I don't
understand how I could have a tagged set of source that doesn't build?

The errors are :
Growl.app - GrowlDisplayWindowController.m

[existingInstances setObject:classInstances forKey:self]; <- incompatible
pointer types sending 'Class' to parameter of type 'id<NSCopying>'

[windowTransitions setObject:transition forKey:[transition class]]; <-
incompatible pointer types sending 'Class' (aka 'Class *')to parameter of
type 'id<NSCopying>'

and

MailMe - GrowlMailMeDisplay.m

NSString *userAtHostPort = [NSString stringWithFormat:

(port != nil) ? @"%@@%@:%@" : @"%@@%@",

username, hostname, port];  <- Data argument not used by format string

Anyone give me any pointers as to what is wrong?

cheers

Matt


 
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.
GingerPrince  
View profile  
 More options Aug 1 2012, 5:48 pm
From: GingerPrince <matthew.h...@gmail.com>
Date: Wed, 1 Aug 2012 14:48:01 -0700 (PDT)
Local: Wed, Aug 1 2012 5:48 pm
Subject: Re: Growl.app 1.4 source won't build

ah. the old 'treat warnings as errors' chestnut.


 
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.
x86tech  
View profile  
 More options Aug 1 2012, 9:06 pm
From: x86tech <r.oneil...@gmail.com>
Date: Wed, 1 Aug 2012 18:06:37 -0700 (PDT)
Local: Wed, Aug 1 2012 9:06 pm
Subject: Re: Growl.app 1.4 source won't build

Same here. I got so many warnings and errors while building this on ML
using Xcode 4.4 but I finally built it successfully after some debugging. I
don't get the same error in Growl.app, you may want to re-clone or update
again to 1.4 tag. For MailMe, I just edited:

NSString *userAtHostPort = [NSString stringWithFormat:

(port != nil) ? @"%@@%@:%@" : @"%@@%@", <-this part, I'm not an expert so I
can't tell what should be done but from what I can tell the format string
must match the number of arguments below?

username, hostname, port];  <- Data argument not used by format string

For other errors I got such as Format String Errors, I just changed them to
what was suggested.


 
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.
Peter Hosey  
View profile  
 More options Aug 2 2012, 1:08 am
From: Peter Hosey <bore...@gmail.com>
Date: Wed, 1 Aug 2012 22:08:39 -0700 (PDT)
Local: Thurs, Aug 2 2012 1:08 am
Subject: Re: Growl.app 1.4 source won't build

That line is a bit of cleverness that creates a string like the following:

 m...@my-other-machine.local:4000 (if a port is specified)

m...@my-other-machine.local (if no port)

The middle expression chooses between two format strings (@"…"). The first
one requires three arguments (each represented by “%@”); the second
requires two.

It's not, strictly speaking, an error to pass more arguments than the
format string requires, but it can be caused by changing either the format
string or the argument list (in this line, that's “username, hostname,
port”) and forgetting to change the other.

The cleverness here is in *deliberately* passing more arguments than the
second format string requires, since the first format string will use all
three and the second format will simply ignore the extra argument.

The code is correct, but the compiler is not wrong, and ignoring warnings
is a good way to create problems later—if somebody makes the aforementioned
change-one-but-not-the-other mistake in a later change, the warning will
not suddenly appear because it was already there, so the person making the
change may not discover their mistake.

The correct change to satisfy the compiler and make that code more robust
against future changes would be to have an if statement that selects
between two assignments, each with a different stringWithFormat: message on
the right side.


 
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.
Jere Krischel  
View profile  
 More options Aug 16 2012, 3:38 pm
From: Jere Krischel <j...@krischel.org>
Date: Thu, 16 Aug 2012 12:38:19 -0700 (PDT)
Local: Thurs, Aug 16 2012 3:38 pm
Subject: Re: Growl.app 1.4 source won't build

Something like this?

https://gist.github.com/13be5b600700f7a06841


 
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.
Peter Hosey  
View profile  
 More options Aug 16 2012, 6:14 pm
From: Peter Hosey <bore...@gmail.com>
Date: Thu, 16 Aug 2012 15:14:39 -0700 (PDT)
Local: Thurs, Aug 16 2012 6:14 pm
Subject: Re: Growl.app 1.4 source won't build

I haven't tested it, but that looks right to me.


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »