On Apr 27, 2010, at 3:22 PM, davecotter wrote:
> when i compile, i get this:
>> 'GrowlApplicationBridge' may not respond to
>> '+notifyWithTitle:description:notificationName:'
>> warning: (Messages without a matching method signature
>
> and i'm like huh?
>
> when i run, of course it fails.
>
> #0 0x90b4fa07 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___
> #1 0x94ac7509 in objc_exception_throw
> #2 0x90b5199b in +[NSObject(NSObject) doesNotRecognizeSelector:]
> #3 0x90aab806 in ___forwarding___
> #4 0x90aab3d2 in __forwarding_prep_0___
> #5 0x000036fe in GrowlNotify at CocoaFunctions.m:31
> #6 0x001ad934 in CNotification::Notify at CNotification.cpp:21
That's because it doesn't respond to that. You need to include the full method
signature when you're using it. Check out the GrowlApplicationBridge
documentation and header file; from there, we see:
/*!
* @method
notifyWithTitle:description:notificationName:iconData:priority:isSticky:clickContext:identifier:
* @abstract Send a Growl notification.
* @discussion This is the preferred means for sending a Growl
notification.
* The notification name and at least one of the title and description are
* required (all three are preferred). All other parameters may be
* <code>nil</code> (or 0 or NO as appropriate) to accept default values.
*
* @param title The title of the notification displayed to the
user.
* @param description The full description of the notification
displayed to the user.
* @param notifName The internal name of the notification. Should
be human-readable, as it will be displayed in the Growl preference pane.
* @param iconData <code>NSData</code> object to show with the
notification as its icon. If <code>nil</code>, the application's icon will be
used instead.
* @param priority The priority of the notification. The default
value is 0; positive values are higher priority and negative values are lower
priority. Not all Growl displays support priority.
* @param isSticky If YES, the notification will remain on screen
until clicked. Not all Growl displays support sticky notifications.
* @param clickContext A context passed back to the Growl delegate if
it implements -(void)growlNotificationWasClicked: and the notification is
clicked. Not all display plugins support clicking. The clickContext must be
plist-encodable (completely of <code>NSString</code>, <code>NSArray</code>,
<code>NSNumber</code>, <code>NSDictionary</code>, and <code>NSData</code>
types).
* @param identifier An identifier for this notification.
Notifications with equal identifiers are coalesced.
*/
+ (void) notifyWithTitle:(NSString *)title
description:(NSString *)description
notificationName:(NSString *)notifName
iconData:(NSData *)iconData
priority:(signed int)priority
isSticky:(BOOL)isSticky
clickContext:(id)clickContext
identifier:(NSString *)identifier;
--
You received this message because you are subscribed to the Google Groups
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/growldiscuss?hl=en.