Icon is not coming with notification in MacOSX 10.9.4

34 views
Skip to first unread message

Varun Arya

unread,
Sep 12, 2014, 9:24:42 AM9/12/14
to growl-de...@googlegroups.com, varun...@hotmail.com

Hello,


I want to show notification in my project, so using GROWL framework (version-2.0) in MacOSX 10.9.4.  

I have set Icon.icns as App icon. 

I am Using below method to show notification. I want to show Icon with notification, So I am passing image data in iconData parameter.


+ (void) notifyWithTitle:@“title”

description:@“description”

notificationName:(NSString *)NotifierTestNotification

iconData:[NSData dataWithContentsOfFile:@“/Icon_path/notification.png"]

priority:0

isSticky:NO

clickContext:nil

  identifier:nil


At time of notification, I am not getting notification.png with notification,instead of i am getting App icon with notification.

notification.png file is present at path,So iconData parameter is not nil, still i am getting App Icon??


Please guys help me.

Am i using wrong method to show notification in growl framework?? or Should I have to update framework version?? or is there any other issue??

Chris Forsythe

unread,
Sep 12, 2014, 11:25:24 AM9/12/14
to growl-de...@googlegroups.com
Just to clarify, you want to show notification.png or Icon.Icns as the image in the notification?

-- 
Chris Forsythe


--
You received this message because you are subscribed to the Google Groups "Growl Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growl-developm...@googlegroups.com.
To post to this group, send email to growl-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/growl-development.
For more options, visit https://groups.google.com/d/optout.

Varun Arya

unread,
Sep 13, 2014, 2:15:38 AM9/13/14
to growl-de...@googlegroups.com
Hi,

I want to show notification.png in notification. 

Thanks.

Rudy

unread,
Sep 13, 2014, 11:04:46 AM9/13/14
to growl-de...@googlegroups.com, varun...@hotmail.com
The path that you're supplying is an absolute path, so its looking for /icon_path/notification.png on your drive and not finding it.

what you really want is:

NSString *pathToImage = [[NSBundle mainBundle] pathForResource:@"notification" ofType:@"png"]];
NSData *dataForImage = [NSData dataWithContentsOfFile:pathToImage];

notifyWithTitle:@“title”

description:@“description”

notificationName:(NSString *)NotifierTestNotification

iconData:dataForImage

priority:0

isSticky:NO

clickContext:nil

  identifier:nil

Varun Arya

unread,
Sep 15, 2014, 2:39:05 AM9/15/14
to growl-de...@googlegroups.com, varun...@hotmail.com
Hello Rudy,

Thanks for your reply.

I tried, whatever you suggest me but this thing is also not working for me. I am still getting App icon in notification.  

One more thing i want to share, I executed my code in 10.7 OSX, and everything is fine in 10.7. I am getting notification.png in notification. But when same code i am executing in 10.9 OSX, i am getting App icon instead of notification icon.

Does growl framework (version-2.0) is not compatible for MacOSX 10.9.4 ?? 
Reply all
Reply to author
Forward
0 new messages