fastsupply / growl

Automatically exported from code.google.com/p/growl
0 stars 0 forks source link

class 'NSString' does not implement the 'GrowlApplicationBridgeDelegate' protocol #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use [GrowlApplicationBridge setGrowlDelegate:@""]; in code
2. compile
3. get warning

What is the expected output?
no warning

What do you see instead?
warning

What version of the product are you using? On what operating system?
there is apparently no "version number" of the API in any headers.  all i see 
is "@updated 2004-01-25" in GrowlDefines.h

Please provide any additional information below.
i'd like to know how to get that warning gone.  note this is a carbon app, 
there is no "self", so my function looks like this:

void    GrowlNotify(CFStringRef msgRef)
{
    ScNSAutoReleasePool     sc;

    NS_DURING
        [GrowlApplicationBridge setGrowlDelegate:@""];
    NS_HANDLER
        return;
    NS_ENDHANDLER   

    static long s_valL = 0;
    NSNumber* valRef = [NSNumber numberWithUnsignedLong: ++s_valL];
    NSString* valStr = [NSString stringWithFormat:@"%@", valRef];

    [GrowlApplicationBridge 
        notifyWithTitle:@"MyApp" 
        description:(NSString *)msgRef 
        notificationName:(NSString *)@"MessageFromMyApp"
        iconData:(NSData *)NULL
        priority:(signed int)0
        isSticky:(BOOL)false
        clickContext:(id)NULL
        identifier:valStr
     ];
}

Original issue reported on code.google.com by anbaricf...@gmail.com on 17 Jan 2011 at 8:37

GoogleCodeExporter commented 9 years ago
if anyone has advice i'd really appreciate it, this should be easy right?

Original comment by anbaricf...@gmail.com on 22 Jan 2011 at 6:43

GoogleCodeExporter commented 9 years ago
anbaric: The framework identifies its version in its Info.plist.

Also, you can use [NSString stringWithFormat:@"%lu", ++s_valL] instead of going 
through an NSNumber.

Since this isn't a bug in the framework, this ticket is invalid. You should ask 
this question on the growl-development list.

Original comment by prhgr...@gmail.com on 27 Jan 2011 at 5:46